It turns out that in even very young children, adults react subconsciously to the problem-solving behaviors of children. In an observational study adults were very quick to swoop in and help girls out when they couldn't perform a task, while boys were allowed to fail until success.
Of course, dismissing genetic factors outright is just as problematic as creating just-so stories and fitting evidence on them. Alas, the answer is usually more complex.
My point is that there are a lot of subtle cues that pervade our society. Girls know to like pink at ages younger than 3, and yet just over a century ago pink was mostly associated with boys (pink is based on red, a proper manly color). And even well-meaning comp sci folks often subtly make women uncomfortable (feminist theory calls this "othering").
Edit: removed useless line.
That's why so many Indians (male and female) work as programmers - IT outsourcing jobs in India pay quadruple a normal wage and are more prestigious. In the US, programmers get good but not mind-boggling wage and have very little prestige outside of SV, Seattle, Boston and Austin.
That certainly didn't stop me from being interested.
It was all somebody else's fault - those damn role models.
Oh, that and 'da-man' keeping me down.
Actually the lack of women in tech is probably because they realize earlier than guys that if they do a psychology degree they only have to study 6hours/week and get to be a manager over all the engineer types.
You may not have had any role models, but as your interest grew, you would have heard the names of people that are doing things (making things you used, big in the industry, etc). If the situation was reversed and you were a girl, I wonder if you'd subconsciously notice that there weren't hearing about any other women, and I wonder if this would subconsciously make it seem like women "weren't allowed."
Nearly all men lack this drive, too.
Bottom line is that my politically correct(i hope) opinion is that while women positively have the ability do be good developers(physicists, mathematicians, engineers), and even though some of them DO become good, most lack this internal drive(almost an obsession) I've had since before i can remember.