There are different kinds of slavery. Nearly all systems throughout history treated slaves better than American slavery did. Slavery in the law given to Israel back then was not racist, it was not usually permanent (all slaves were freed every 7 years unless they chose to stay), and the slaves still had some rights and protections. So even someone who supported that kind of slavery could still be against American-style slavery.