It’s cruel & unusual punishment, no matter how you want to frame it. Granted, a judge doesn’t sentence a convict to rape, but people end up turning a blind eye to the reality by rationalizing that they shouldn’t have committed the crime in the first place.