Well…if by evolution you mean the Darwinian model of natural selection for genes, then that depends on the extent to which we assume behavior is governed by genetics. However, there are also theories of cultural evolution that follow roughly the same lines of thought; favorable behaviors are passed on to descendants. In this case, however, it is very important to distinguish between what is favorable for the group and what is favorable for the individual. In times of external stress, the survival of the group is most important, and collective morality- tribalism, if you will- dominates. Also, as the individual is more dependent on the group, they will look to the group for their behavior, thus strengthening and perpetuating tribalism. In prosperous times, however, individualism may come to the forefront. Of course, there are innumerable other factors as well, but this is the basic mechanism by which tribalism can develop in some places and not in others. If genetics were to play a part as well, the outcome ought to be the same; except, perhaps, that individual tendencies, which seem like they ought to have less cultural momentum (because individualism, by its very nature, is subject to change), would possibly be more readily favored.