I’m not sure I understand the contradiction there. Are you saying that a court doesn’t care enough about any mental disorder which may have led one to commit a crime to completely absolve them? That’s does indeed seem to be the case in many areas, and for good reason: one important function of our legal system is to prevent future harm.