Um maybe you've noticed that this is an ongoing problem and is considered to be the norm in a lot of Prisons.
So I would say people are not getting punished.
But it is against the law and if people get caught they get charged and punished.
The difference is , these acts are not against the law and these people are not being punished for torturing or sexually abusing prisoners.
Why are you failing to see the distinction?