Sometimes God comes through just in the nick of time.
But He's outside of and greater than time, right? So why does He wait sometimes?
We can only suppose that He knows better. That somehow from His perspective it all makes sense (even during our pain).
But we must not suppose that God is uncaring or without compassion. We see in Jesus that He relates to our toil, our hurt. He's experienced the depth of human pain.
Thus, He sees when things are upsetting, but knows better than to fix everything in an instant (His view is better than ours).