Perhaps divine retribution is a better explanation than ritual sacrifice in theocratic regimes, in the case that a god or a group of gods require the death of the mortal body so the soul can face metaphysical justice for Earthly sin.
However, regardless of the metaphysical beliefs of a state, any entity of sufficient size & organization will often be recognized by an individual as possibly having godlike power over the individual's body. Whether or not that truth actually ritualizes state-sanctioned violence, or the diffused psychological impact of that violence can be called a sacrifice, is a matter of opinion; however, being that it is state-sanctioned it is obviously distinct from murder, and because these punishments often have no deterrent effect on the populace, their true nature is in camera obscura.
However, regardless of the metaphysical beliefs of a state, any entity of sufficient size & organization will often be recognized by an individual as possibly having godlike power over the individual's body. Whether or not that truth actually ritualizes state-sanctioned violence, or the diffused psychological impact of that violence can be called a sacrifice, is a matter of opinion; however, being that it is state-sanctioned it is obviously distinct from murder, and because these punishments often have no deterrent effect on the populace, their true nature is in camera obscura.