i think it has far less to do with gender than just how your brain is wired. My husband and i are both lawyers, neither one of us was cut out for a scientific field. i was pre-med my first year of college, but i knew getting Cs wouldn’t get me into med school, so i switched. my brother is a ChemE and while no smarter than I am, he gutted his way through a year behind me. Maybe i could have scraped my way through in engineering, but it wasn’t what i was interested in. Though i have to say those i respected most of my law school classmates were those who were engineers, there were only a handful of them, but to be adept at language and math/sci is a bit more rare.
I get math, I get computer programming, I get software & hardware, for the most part, I get chemistry & biology. As I am getting older, I enjoy writing more, and I can help write work SOPs, etc. I don’t get physics. It was truly a struggle.