From what we understand about the difference in white-collared intelligence in males vs females, there's a higher variance in intelligence among males than in females. So either women really are in general better at coding than men, or the mid-to-low skilled women aren't making it professionally as much as they should, and only the highest-skilled women are being selected. If your anecdote generalizes, that is. (FWIW, that's been my experience as well.)