There are various theories explaining that, but the most common one goes as the following:
- The usual discriminator is pregnacy and children. This makes women less attached to their work, which then prompts caution from their employers to assign them to higher paying positions that require more investment.
And even then as stated you can add controls to that.