Statistically, men have a wider variance in IQ score than women do. This means that there are likely to be more highly intelligent men than highly intelligent women in a room, and that the most intelligent man in the room is probably more intelligent than the most intelligent woman.
With that said, if you were to select the top 10 intelligent people in a room of 1000, a statistically significant amount of the time a majority will be men.
If you are hiring for a job that requires the top 1% of intelligence, it is no surprise that you are going to have more men than women.
Disclaimer: I hope some day that my daughter chooses a position in STEM, I realize that there are limitations and gaps in the IQ test, and that I might sound like a complete troll but I'm asking this question legitimately.