>>7822537The human condition is an endless search for purpose. Identity is an easy way to establish purpose, and membership in a group is an easy way to establish identity.
Competition and conflict between those of the ingroup and those of the outgroup is an age-old way of reinforcing ones membership in said group.
This pattern has been observed since the beginning of recorded history.