Is this a Western/US thing? Woman STEM graduates outnumber man in a number of countries. Mine and Iran for example but most Muslim countries have strong woman numbers.
I don't think STEM in the west is discriminatory to women, out of the blue. It can't be more discriminatory than Iran? Unless, there is data and research that suggests otherwise.