The (frankly kind of bigoted) assumption here is that being well intentioned and having the “right” attitudes towards female sexuality is somehow more effective at preventing rape than strict social separation of the sexes.
And you’re correct that non-consensual sex is a relatively small factor in HIV rates compared to widespread consensual sex with multiple partners.