It's not because it's morally wrong to punish someone for being bad if they can't help being bad. That's why we allow people to plead not guilty for reason of insanity. People in protected classes aren't bad.
edit: this is the kind of thinking that leads people to desperately look for gay genes - because otherwise, they wouldn't be able to justify laws barring discrimination against gay people.
I relate it to modern child-worship: the belief that babies are born purely. without stain, and are thereby most deserving of life and happiness; but from the first moment of life the decisions that they make cover their souls with filth, gradually making them less deserving of life and happiness. Therefore, by applying this extreme Protestant reasoning to modern science, the things in your genes can't be judged because they were placed there by God. If you die because your sin literally turns your lungs black and diseased, the most important thing to do is condemn your corpse so no babies will follow your example.
Shaming someone for choosing a religion different than their parents or shaming someone because they have picked a job you think lowly because they are not a protected class is not a good enough reason.
If the impulse to commit a crime is strong enough, they'll commit a crime. If some internal voice of reason holds them back, then they'll hold back. But in both instances, their actions were guided be preexisting circumstances, not by any choice they made.