The US needs to get over this whole ‘punishment’ view of prison. It either a social-safety quarantine, or a rehabilitation
Prison is punitive by design.
If it was better than the conditions they endured on the outside people would enticed to commit crimes.
It's punishment. Any society that thinks otherwise is going to have to relearn the hard way.