Just because something was tolerated or practiced does not make it an inherent right. When Moses was given the law from the Lord, the Lord never said that Israel had a right to enslave others. If He did, please tell me what book and verse it appears.

Slavery created racism, racism did not create slavery.