Africa and other such slave selling nations peppering the globe had no such justice system. A criminal, debtor, enemy combatant, political troublemaker and his family were either killed or sold into slavery.
While this is a concept that outrages western nations who are self annointed as "civilized", how else does a poor country in the third world deal with it's criminal element in a real and cost effective manner?
If they just don't, you get Somalia, Rhodesia, Congo, and such. The ones who have some assemblance of order with a sparse justice system rely heavily on a brutal dictator and his military to dispatch the problematic rabble along with their entire families. A much more cost effective approach to governing a nation with an element of animals.
A United Nations, given the choice to pony up some funds to build prisons in countries who cannot or will not afford them, or to let that country sell it's criminals off into slavery, will gladly keep their cash and bless the practice.