If this is true it's probably because the community isn't very friendly or welcoming to women like the poster said…
That being said, I don't think this is true. My only evidence is anecdotal, but at a previous company when we tried to recruit at events that weren't primarily male dominated, we got roughly equal percentages of responses from people who identified as female or male.
> Just like most men don't go into pre-school teaching.
Let's assume for a moment these statements are correct: you're not starting from the right place. Why don't most women want the software job? Why don't most men want to teach pre-school? It could be because they've been raised in a society that says that the burden of child rearing should be placed on the women and that pre-school isn't a "manly" profession. Just because people don't want the job doesn't make it less discriminatory against women somehow, it just means the reasons are likely ingrained and harder to fix.