These cultural traits are known as adaptive customs. They are customs made as a result of the society's adaptation to the environment, which in turn enabled them to live longer and prosper as a society. It's a way of social darwinism at it's most extreme because of the way it works.