God blesses you not because you are good, but because He is good. It is based on His faithfulness and goodness towards you. It is not contingent on your performance, but on His undeserved favor.
“If ye then, being evil, know how to give good gifts unto your children, how much more shall your Father which is in heaven give good things to them that ask him?”
Matthew 7:11 KJV