Change is possible in human nature, but it takes time, maybe even a long time. We know now that slavery is morally wrong.
Part of our relationship with God is that God does not force us to change faster than we are able to do of our own free will. This week’s Torah does not abolish slavery, but it does set in motion a series of fundamental laws that will lead people, to abolish it of their own accord.