As Michael Biggs highlights the reason why "pre op" male prisoners were transferred to the female estate was not for their safety but because doctors decreed that female prisoners must be forced to provide therapeutic validation and diagnostic aid
"Gender"..... the way society treats people because of their sex.
Feminist political organising, combined with (and enabled by) material progress - electricity, washing machines, contraception etc... has enabled greater equality for women