David and other psalmists often found themselves deeply depressed for various reasons. They did not, however, apologize for what they were feeling, nor did they confess it as sin. It was a legitimate part of their relationship with God. They interacted with Him through the context of their depression.