There is something about worship that recalibrates the soul. But worship is not the natural instinct of the depressed person.
When gloom closes in and all that once drove our life fades, we tend to want to pull the blanket over our head and bail out on God and everybody else.
But the writer willed himself to come to worship. There are deeply helpful benefits to gathering with God's people.