Judgement
If our legal system can consider the circumstances and nature of a crime to determine whether a person deserves full punishment or some leniency, such as distinguishing between first-degree and lesser offenses, then surely God, who is not only Just but also All-Knowing, can do so even more perfectly. For instance, He prescribed half the punishment for slave girls involved in adultery, recognizing their lack of family protection and the poor environment in which they were raised. Even if they were later placed in a protected setting, their background was still taken into account.