Why is computer science such a misogynist, exclusive field?

I study something related to computer science at a university and the more I get into the field, the more I notice how excluding and misogynist it is as a field. Discrimination of all kinds of minorities or based on gender are common and part of the 'community'

Why do you think this is the case? Coming from a different field, I am very shocked about the masculinist atmosphere at my current programme.