Mayans were savages, like most other inhabitants of pre-Columbian America.
All the killing was about protein. They ate the victims because there weren't any large animals to provide the needed protein.