To the contrary, non-slaves produce more value than slaves, therefore slavery is not only unethical, but also un-capitalistic.
Capitalism explains many things, certainly people stopped Apartheid, but it can very well be both, slavery and segregation are unproductive, and therefore anti-capitalistic.