St. Nicholas Cabasilas points out that some people only hate sin because they don’t want to be punished for doing the sin – if there was no punishment for wickedness, they would gladly do evil things. He says that our goal as Christians is to love God, which means we want to do God’s will, not to avoid punishment but because we never want to offend God or be separated from the Father, Son and Holy Spirit.
“Just as he who hates wicked men cannot properly be called a hater of mankind, so to feel abhorrence of sin merely because it brings punishment on its perpetrator rather than because it conflicts with God’s laws is not to shun wickedness itself but merely to flee from its punishment. It is quite clear that were it possible to sin without peril to oneself such men would not flee from evil.
But those whose affection for God exalts them to a philosophical life honour the law because they love its Giver. When they have offended God they condemn themselves and blame themselves for the sin itself and bewail it, not because they were cheated of the rewards of virtue but because their will was not in harmony with God.”
(The Life in Christ, pp. 209-210)