Jail isn't about rehabilitation, it's about punishment. He's right to say 'if you don't like it, don't come back'...
..as for 'inhumane' treatment because of the lack of air conditioning...there are millions of people in the US who live without air conditioning every summer.