Would be interesting to see the equivalent analysis of enrollment in CS degrees in China and India. I work with dozens of female coders; 90% of them are from China, India or Russia.
I imagine that being a programmer is a much more lucrative job in China and India than being a lawyer/doctor, compared to the US. Programmers are always present on the global market, while lawyers and doctors are inherently local. I might be wrong though, this is pure speculation/no data.
The better paid the job is, the more ambitious people choose it against their preferences (e.g. lawyer/doctor/banker). The push for low gender ratios correlates quite nicely with salaries - the push for more women in programming has only started after programming became a more lucrative job, and there is much less push for more women in construction/men in nursing. I imagine being a programmer was comparatively better paid in India than in the West.