We have plenty of social structures that discourage women from programming.
Programming first arose as a profession in the mid-20th century, at a time when the vast majority of scientists, mathematicians and engineers were male. Naturally, the first programmers mostly came from those fields, so they were mostly male. Over time this became self-reinforcing, both because the programming community has historically been hostile towards women (and still is today, but to a lesser extent) and because the perception of programming as "mens' work" means that teachers and advisers encourage women to choose other paths.
You may not agree with the above argument, but it's the main argument against your position, and I'm sure that you must have heard of it at some point. It seems strange to me that your post completely ignored it.