In the case of the software industry in the US, the companies themselves have a strong economic incentive to get school girls to choose engineering careers. It'd almost double the pool of hiring candidates. So it's something that the market eventually balances, only maybe not fast enough.