The underlying logic of sacrifice was always the same: In order to gain the god's goodwill, destroy what you value most.
Tragedy allowed the audience to experience intense, sometimes disturbing emotions that could not be experienced in real life without terrible cost.