So what? You could equally well observe that most great scientists were men, but that doesn't mean that STEM education for women can be improved by sex reassignment surgery.
My point is that a well rounded education probably makes for a smarter person. If all you do is code or solve calculus your world view might end up being rather narrow.