From comments read on the Internet it seems there are plenty of differences between American and European prisons, even more to the Northen European countries.
There they seem to be able to rehabilitate the people (most of the time), unlike other places.
I think it doesn't help the depiction of prisons in fiction as a place where the strong thrive, full of contained violence, bribes and all the debauchery humanity is capable of.
I don't think American prisons rehabilitate. Insisting that they do even less is like the extreme capitalistic measures of cutting public funding for a function, and then demand that that function should be privatized because it doesn't work.