Psalm 32:1 Blessed is the one whose transgressions are forgiven, whose sins are covered.
David knew full well it was not what He could do for God which got his sins forgiven.
David knew he had committed sins but also knew God was willing to forgive him!
The true blessing comes from knowing God is willing to forgive you!