Race might be a decent analogue to the difference between human actors and sentient AI, but I suspect work animals (plow horses, etc) would be a better analogy.
If slavery truly provided no economic advantages, it's hard to explain why countless human civilizations have engaged in it. It's wrong on every moral front, but riches were inarguably built upon its back.