It makes sense to me, based on my own limited personal experience as a college prof (teaching CS). Particularly for our intro classes, it's fairly common for a male student to struggle all semester and scrape by with a D-, then without hesitation declare his intention to be a CS major. At the same time, a female will get a B or A- and walk away apparently thinking "I guess I'm just not good at this and CS just isn't for me."
This is all just my impression, of course, from a small sample size. Still, we've had very good results improving our male/female ratio just by have a short 1-minute chat with each student that gets above a B, praising their work and encouraging them to consider CS as a major.