Prison guards in Norway are essentially university educated social workers. American prison guards from what I've read are essentially just guys with a stick. They just get a couple of weeks of training.
Guards in Norway work closely with prisoners and do activities with them and get to know them. This leads to lower levels of aggression. I've seen accounts of other European visiting Norwegian prisons remarking how much more calm the atmosphere is.
When you lock up people and treat them as animals you create anger, resentment and aggression which they take out on each other or the guards if given the opportunity.
I believe this is a principle which applies to all walks of life including how you raise children. Children who live under strict regimes which are heavily focused on punishment don't act well. They easily become violent and lack self control.
If there is always an overwhelming force present to punish every transgression you make, all you learn is to be behave when you are under threat. When that control is gone you have no ability to control yourself.