How so? Many people (women even moreso than men in my experience) prioritize fulfilling work over higher paying work. This is observable in, for example, people pursuing careers in saturated industries like journalism, art, or acting, as well as going for "more meaningful" startup jobs instead of FANG jobs.
I personally switched from rocket science to tech and then to a FANG so I could get increased compensation and have a chance of catching up to Bay Area housing prices. My compensation increased 3x in the process. Most of my peers wouldn't do that.
This is a pretty naive statement.