The Messiah, being perfect, would die so that God could punish him for the people’s sin so they could have peace with God.