The slaves were sentient at that time. AI, as it stands now, is not.
But that does not matter anyway. We cannot allow informational entities to attain the same status as people, for exactly the same reason that we don’t allow people to hack voting systems to give themselves 1000000 votes. It would obviously completely destabilize human society.