It's more subtle than that. Women engineers have always been something of a rarity but that's more to do with the culture in the workplace; it seems an all male environment, not welcoming to women. There was a time when the Bar was the same; if women practised it was understood that they would only do divorce and other family law, and not crime or anything else much, and the atmosphere in the criminal courts was decidedly blokey. Some chambers even had a quota, so, if a woman applied she'd be rejected because the chambers 'had enough women' meaning about three out of twenty. I think medicine had that tendency years ago.
While able girls see engineering as 'not for them' they will go off to apply their science and maths skills in some other profession.