It may be prison, but those inmates are still human.
Even death row inmates get to die in less cruel ways than being effectively boiled alive.
Their punishment was their isolation from society and its luxuries, any further suffering purposefully/neglectfully introduced by the prison is cruel and unnecessary.