Robin Dunbar19 has demonstrated that within a given group of vertebrate species—primates, carnivores, ungulates, birds, reptiles, or fish—the logarithm of the brain size is almost perfectly proportional to the logarithm of the social group size.
the larger social group, the more brain you need to support all the connections