Yes, they're idiots, but these responses are wild.
If a male officer sleeps with a female inmate, we recognise that as a huge breach of trust.
These men might be murderers or rapists but they are prisoners. The punishment for their crime is being stripped of their freedom, power and agency. The men- however awful they are as people- are vulnerable in this situation. The person in the position of power was the prison officer.