Perhaps one reason God allows distress is so we learn to pray with earnest intensity.*
When David’s life was at stake, he prayed, “Aloud to Yahweh I scream out; Aloud to Yahweh I implore favor! I pour out before Him my trouble; My distress before Him I make known (Psalm 142:1-2).”
*adapted from Ronald Allen, And I Will Praise Him, p.187.