I know.
And that is not just morally wrong; it's bad policy.
If I know that being sent to jail is a rape/death/slavery/maiming sentence, then the normal things that any human being is entitled to do to escape rape/death/slavery and maiming (i.e: to KILL the person trying to rape, kill, enslave or maim him) becomes morally justifiable.
That's a fatal flaw with having a prison system based on torture perpetrated by other prisoners. If the guards don't stop it, those tortures are really being perpetrated by the state itself, as a result of its (intentional) policy choices.