The majority of people fall into the first category, regardless of sex. There are a lot of people who with exposure might consider software development as a career, but didn't think of it as an option. For various historical reasons (exposure to programmable computers, video games, adults that can explain or teach programming, access in school, peers that program, role models, etc) the people that tend to realize programming is a career option and understand what that career might entail tend to be white and asian males. That isn't to say there aren't many white and asian males that also don't know programming is a career option.
Now that "tech" is so important and lucrative I'm sure this is changing to some extent, but this is a recent trend that's probably 5 years old at most. Tech wasn't viewed the same as it was now in 2012-2014 and felt like a much more risky and inaccessible field. Now it looks a lot more like any other high paying corporate job.