Because men get horny.
And because rape, in prison, is also used as a sort of punishment among prisoners for those that don't "fall in line", or as a method to establish a sort of dominance (alpha male), etc.
And then various other things that have already been said.