Judgment can be used synonymously as consequence of the actions, however judgment is concerned with justice due to free choices, not for accidents and deterministic consequences. The ancient people believed more about the consequence of our actions in this life, hence, the ancient Wisdom literature is full of similar teachings as the Indian Karma theory of consequence/justice received in this life itself. The righteous does not suffer and enjoys prosperity and multitude of descendants. The concept of deeper wisdom of the eternal afterlife developed later. Determinism or the denial of freewill is a depressing philosophy of either the unbelieving naturalist or a naive legalistic believer who follow the ancient Gnostic fatalism such as Manichaeism, as believed by Augustin of Hippo, Muhammad, John Calvin.
Sleepwalking crimes of automatism are not punished by the law.
Quoting from Dr Craig of reasonablefaith:
A determinist cannot live consistently as though everything he thinks and does is causally determined—especially his choice to believe that determinism is true! Thinking that you’re determined to believe that everything you believe is determined produces a kind of vertigo. Nobody can live as though all that he thinks and does is determined by causes outside himself. Even determinists recognize that we have to act “as if” we had free will and so weigh our options and decide on what course of action to take, even though at the end of the day we are determined to take the choices we do. Determinism is thus an unliveable view.
This presents a real problem not just for the Calvinist, but for the naturalist. For insofar as naturalism implies that all our thoughts and actions are determined by natural causes outside ourselves, free will is an illusion. But we cannot escape this illusion and so must go on making choices as though we had free will, even though we don’t. Naturalism is thus an unliveable worldview.