Women that work in the field should definitely be respected as much as anyone else. They should be free of sexual harassment, and mistreatment. On the flip side, if only 20% of graduating classes in targeted STEM fields are women, and women represent a disproportionate amount of college students... then maybe the issue is broader than the affect of men on the field at that level.
I think part of it may be natural inclination... another is probably the role of movies and media. The latter likely a much bigger role on the impressions of the work and the likely types to fulfill those roles.
--- Edit:
Big example Daisy/Quake from Agents of Shield... started off as a badass hacker, best of the best... as the show moved on, the role was relegated to brawler, and the impact of intellect or technical ability was largely sidestepped, or made secondary and less.
Media portrayals of technical professionals all around are usually very unbalanced... and that doesn't even begin to go into the other fields that are disproportionately male or female, or the hindrance of men in higher education.