No, the teams weren't trying to exclude women. Not at all. They were representative of the company and the entire industry. There are very few women in tech.
So then the question is why are very few women in tech? If you really dive into this, it's a chicken-and-egg problem: The fact that so few women are in tech makes the whole scene into sort of a frat house, which is often not a welcoming or kind environment to women, so women avoid it. A feedback loop. And one way you can try to combat that is by encouraging entry into the field. Et voilà: "Girls who code".