This is David's prayer, which simply expresses his anguish and need. When people are in trouble, they may instinctively say "God!" Even if they do not believe in God. However, David, who believed in God, was constantly praying to God. If the difficulty or pain is too great, or if the difficulty is too much, there is no choice but to shout to God.