Free will
The law assumes we have free will. The job of courts is to find out when people do things and what they were thinking when they decided to do it. For example, think of someone who kills someone else. A court tries to figure out (1) if he or she actually killed the other person, and (2) if he or she decided to do it. The courts do not ask the philosophical question above.