He loves you because He is a loving God who wants to restore all His creation and not lose one. Resist sin as best as you can and seek to do good as often as you can, this is a worthy pursuit. But all our righteousness are as filthy rags compared to the perfection of God, so rejoice in the mercy and love of God that while we are all sinners He has made a Way to Redeem those who have faith in His true and good Will.