Why was ritualized violence so common in mesoamerican?

From my admittedly limited understanding of alot of pre colonial cultures a clear theme of ritual violence emerges. So my question is, why was ritualized brutal violence so common in the area? Is there a well understood academic explanation for this or is a more heavily debated topic?