Correct. For the strict purpose of protecting private property, something which slaves were considered to be. Thank you for agreeing with the historical facts.
David Friedman has a great summary of how a variety of societies pursue justice and the origins of our own system and comparisons of the systems.
http://www.daviddfriedman.com/Academic/Course_Pages/legal_sy...