Whilst what you say is not disputed, who was in charge of the international slave trade? Who was driving it? Who was profiting the most from it?
The racist views held by the perpetrators justified their barbaric treatment of other human beings, by classing them as sub-human. Whenever that happens, very bad things happen: slavery and the the death camps being two examples.