Ancient slavery is a covenant which changes the nature of the economy between two parties, so that the payment required is no longer based upon the benefit to the recipient, but on the cost to the giver.
I am a slave to righteousness, because grace has changed the economy of God from what He deserves to what I can give.
We are slaves to righteousness because, as we possess nothing fit to give, so we freely give ourselves.