I am shocked that there is even a discussion to be had on this. In architecture (a somewhat older profession, but also concerning things constructed by people), women previously did have a hard time, and often had to practice under their husbands/partners name. Mercifully this ended some while ago, and now architecture schools and onwards are more evenly gender balanced. Nobody suggests that women are somehow natural…
Not just architecture, also medicine and law. The whole question is what's different about math, CS, engineering and the physical sciences that makes it so much harder to reach gender balance there? If you look at the commonalities that these fields share, the "things, not people" aspect is the most prominent by far.
Nowadays software dev is highly collaborative and social. It faced declining amounts of graduates that were women from the late-80s and onwards compared to engineering and the physical sciences which if I'm recalling correctly have steadily rose.