The US has a very strong belief in punishing people. It helps them create an "out group" to shun. For those people, the worse the conditions of your jail are, the better. It's some sort of a relic of the specific religious background common in the USA, and it's disgusting.
Other parts of the world believe in human dignity and helping people fix the things that are broken in their lives. Look up Norwegian prisons...
Other parts of the world believe in human dignity and helping people fix the things that are broken in their lives. Look up Norwegian prisons...