This is what decades of two parties trying to outdo each other on being "tough on crime" looks like. These punishments do act as a deterrent to whistleblowing but that's not really why they were instituted in the first place. Prisoners are a really easy demographic to throw under the bus for political gain(not like they can vote) so you get these sorts of barbaric conditions for an ever increasing subsection of the prison population.