It's common for people to talk about different fields this way, it's a form of lighthearted rivalry. Not worth getting worked up over it, unless you're an unfunny boring person.
The physicists where I work like to joke about how engineers can't do basic physics stuff and the engineers like to joke about how physicists struggle to convert design into reality.
Neither of them genuinely dislikes the other's field/passion, they're actually very appreciative of each other's skills. It's just a very common kind of humor.
Engineering, physics, mathematics, astronomy and STEM in general are already appealing to women - it's the bro-centric institutions that are off putting.
Women like R.O have contributed to all those fields since the 1980s .. but then they've been surrounded by others like C.P to take the edge off the boof heads.
If it was said about e.g. accounting it could come off as snobbery. Everyone knows that being a poet requires imagination, so no one is going to see it as anything other than a light-hearted joke.