It wasn't always that way. Fifty years ago, only 5% of women were lawyers (long after they were legally permitted to join the bar). People rolled out the same tropes--the work was too detail oriented and analytical for women, who preferred to work with people and children. They wouldn't want to deal with the stress and long hours. Etc. That turned out to be bunk. Now, people who want to maintain the idea that women are predisposed to not going into tech have to resort to distinguishing what were archetypally "male" fields like law by redefining those fields to be women-friendly ones.
The legal profession fixed the problem of historic discrimination in the field by not being gender blind. Schools and law firms gnashed teeth about their gender ratios, like tech schools and companies are doing now. And while that may have been "unfair" to certain individuals at certain moments in time, it was the only way to fix society's earlier sins.
A skewed gender ratio that is the product of past discrimination is itself a form of discrimination. If you want to claim to have leveled the playing field, then you have to actually level it and see if it stays level on its own. In law and medicine, that turned out to be the case. I don't expect the situation will be different in tech.