It predates Christianity. And was generally performed on non-peers.
Another old world way of thinking that few today can even grasp is that slavery was regarded as a better fate than being slaughtered. It was a spoil of war, the victors enslaving their former opponents.