I'm really not sure what point you're making here. No, of course female spaces aren't inherently safe. No space is inherently safe. But one thing we know for certain, so certainly that we've built portions of our society around it, is that some males present a significant danger to females.
There's no way, at least not that I can think of, to completely remove this danger. If it were possible to tell which men are potentially abusive and which ones aren't, that would be great. But as it's not, we offer women privacy from men in spaces where they'll be undressed or alone or particularly vulnerable.
Are you suggesting that we just abandon any attempt to do this because women are more likely to be raped at home? Do you think rape is the only standard by which women's right to privacy should be measured?
As for how many women "miraculously" get pregnant in women's prisons, I'm glad you asked...(https://nypost.com/2022/04/14/edna-mahan-womens-prisoners-pregnant-after-sex-with-transgender-inmate/).