To add to this, in countries with low equality and weak social safety nets, having a lucrative career is far more important for survival. It's western countries where women are more free to choose a career based on interest.
This cannot be a correct assumption. In western countries also most Enginnering jobs pay well above what other female-dominated (medical care) jobs offer. Then why don't select these well-paying jobs over ones that don't pay as much?
Because their survival is not dependent on their career choice. Tech may pay more, but being a nurse is still perfectly fine. There are also more women entering the MD profession than men, and that pays better than tech, so there's even more room for people to move between fields based on a "natural" preference (if such a thing exists).