Courts are allowed to make wildly evil decisions, after all.
Oh, there’s certainly an argument to be made that we might be better off if prisons and sentencing guidelines were designed to rehabilitate. But aside from the legal opinion of the courts, there’s quite a bit of evidence that if our prison system were judged on the merits of rehabilitation, it would be an utter failure. Of course, I’m not really sure what metric you could use to determine that our prison system isn’t a failure. Also, I don’t know why that part of your post stood out to me. I really did read it.