They're seeking to bond with you by setting yourselves above "the herd". This is predation behavior at it's core. It's like divvying up territory between hunters so you don't get in each other's way.
When you don't respond to digs about women, other group denigrations will follow. It's interesting that it always starts with women though. Always.