I know it's hard to believe, but women don't usually get sent to coding summer camp as teenagers. Our parents don't usually encourage us to take AP computer science, and our best friends aren't in CS and don't refer us for sweet internships at Microsoft and Google.
If you're a woman in this industry, it's GENERALLY because it is something that you very much care about and want to do.
It's not some feminist conspiracy that women are being promoted, it's just that the women who go into tech are usually already pretty gritty people. You're comparing a very driven and passionate subset of women to a very general subset of men.
Here's a really great article I read once -- "I need terrible female engineers": https://medium.com/@amyngyn/i-need-terrible-female-engineers...