At least for some kinds, there is a lot of non-adversarial human interaction. For example, in patent litigation you are usually part of a team and spend a lot of time working closely with the other lawyers on your side, paralegals, outside experts, inventors, and other people involved with the patent on your side.
Lawyers work in teams, but programmers work in teams too. Having done both there is a lot more interactivity in programming teams (weekly status meetings, pair programming, dropping in on a neighbor to discuss APIs). (Legal teams are much smaller and cases are much less interconnected than large codebases).
In which case the attorney may double as a councillor of sorts.
This dual role is common in lots of jobs though. Maybe defending people is more appealing than maybe mentoring junior devs.
Maybe accounting is due to stability? In western countries you always need an accountant. You could probably make an argument about women not being risk takers.
Your last point is why statistics in developing countries are always brought up. At least one thing is clear, we can change the environment to get more women into STEM.
Don't agree with number 2 at all.
Half of all new attorneys are women. There is nothing "nurturing" about the profession--it's adversarial and conflict-oriented by nature. And you spend most of your time dealing with abstractions, not people. More than half of accountants are women. That profession isn't any more people oriented than programming, and you work entirely with abstractions. 70% of tax preparers are women. 60% of insurance underwriters are women. Etc.
Conversely, professions we think of as "people-oriented and nurturing" are dominated by men in other countries. E.g. teachers in India are 80% men.