The Psalmist, having received God’s forgiveness for his sins, expressed his joy, blessed. He received forgiveness when he acknowledged his sin, but there was chastening/discipline. When he was silent and did not confess his sins, he was weakened physically and grieved inwardly.
Confession is the way of forgiveness and restoration.