There are systemic and cultural biases against women in math and in technical fields. Women are driven out of these fields by people in them.
If you had a magic wand, women wouldn't be driven out, so there would be more women in professions that have biases against women.