Tribalism has a very adaptive effect in human evolution. Humans are social animals, and ill-equipped to live on their own.