You have been set free from sin and have become slaves to righteousness.
I am using an example from everyday life because of your human limitations. Just as you used to offer yourselves as slaves to impurity and to ever-increasing wickedness, so now offer yourselves as slaves to righteousness leading to holiness.
When you were slaves to sin, you were free from the control of righteousness.
What benefit did you reap at that time from the things you are now ashamed of? Those things result in death!
But now that you have been set free from sin and have become slaves of God, the benefit you reap leads to holiness, and the result is eternal life.