Occam's razor would tell me that if you want to know why more programmers are men, look at programmers as a group, not women as a group.

Voltaire's dictum would tell me the reason the debate always turns to speculating about women being less capable/inclined/useful/motivated/etcetera is because it maintains the self-esteem of men.