Of course it's not an excuse. But you should not expect to get results that defy statistics.
Second, it's also very possible that there is a local, fast, feedback loop. I think women would be more attracted to companies that already employ a higher number of women, and are known for a hospitable working environment, so it's likely those companies will receive a higher share of women applicants.