I think it’s tribalism. On one hand it’s important to feel like you’re part of a group of peers and it’s good to help the tribe so that the tribe helps you.
But what a “tribe” is, is different for different people. And often it leads to the “us vs them”.