This question already has an answer here:
This week’s Torah portion, Mishpatim, following the Ten Commandments, has no less than 53 commandments giving the "details", beginning with:
When you acquire a Hebrew slave, he shall serve you for six years; but in the seventh year he shall go free, without paying anything. [Ex. 21:2]
And the next four verses give more details on how the slave is to be treated. That’s odd… Why begin with a validation of slavery, albeit with restrictions, when the Israelites themselves have just been rescued from slavery? We expected the Torah to say: “You shall not enslave another person, because you yourselves were slaves in the Land of Egypt.” But it doesn’t. Why not?
I know God figured that Jews would not have accepted the Torah if some allowances were not made for existing practices. But why START with that one?