And, thanks to economic protectionism, a largely guaranteed source of white collar income. Programming is much riskier.
* your family & friends will be able to grasp what you do
* on average, in those fields you can have a much greater positive impact on other people than you can employed developer
* your field is insulated by the need for education - you don't have to worry about 16-year-olds who think working 20 hour days is fun
* codes of professionalism (whether or not they're slavishly followed)
* regulatory boards that can and do eject bad apples
* very hard to outsource to India or other destination du jour
* law firms and medical practices don't go boom and bust as often as tech firms do
I'm a female developer and I honestly don't care... but then again, I've made myself impossible to compete with. I'd also gnaw off my own leg before working in a corporate tech environment.
Let's face it -- the movie that sums up the life of a corporate developer best is _Office Space_. The IT Crowd doesn't make it much more appealing.
Meanwhile, lawyers and doctors and biotech and all sorts of other fields where there are more women -- they get the awesome shows and movies.
Further, everything you just said applies equally well to any sort of professional engineer (i.e., the kind where you get certified) or to actuaries. Those fields exhibit a lack of women similar to CS.
That's it! We need the IT port of House!
After listening to a med student and a pharmacy student discuss what they've been doing while on rotations, I'm not entirely certain this is true.
Medicine and Law has more prestige.