Is it because of their fragile ego? Or is it something more deeper than that?

I notice that there are many women who have rightfully complained about being gatekeped in regards to a nerdier hobby or interest they may have. Like they may be asked obscure questions that wouldn't be asked to a man, or met with doubt, ridicule, or open hostility. And I don't understand why that happens.