It was feared she would be attacked in the male prison.' Then why not give this sex offfender protective status in the male prison, rather than put the sex offender in the female prison and then provide protective status, when in reality what they are protecting is the female population in that prison against this sex offender?
It's not like there's established protocol and systems in place for male prisoners (paedophiles) who are likely to be attacked by other male prisoners, is it? 
This never happens.