I'm sure it was perfectly moral and right at some time 5-10 thousand years ago, just as people from then would find many of our customs today deplorable.
So you would be ok with being someone's slave then? There's nothing wrong with it, as long as you're the master right?