The main difference is that in the examples you mention there is a significant disparity in remuneration when compared to software engineering.
If there are societal reasons which encourage women to pursue industries other than STEM, these then effect the participation rate in high-earning industries creating income inequality.
This is why this matters.