God isn’t all that concerned about our comfort, ease, or safety. There is one reason God does everything and it is found in the Scripture below…

For my own name’s sake I delay my wrath; for the sake of my praise I hold it back from you, so as not to cut you off. See, I have refined you, though not as silver; I have tested you in the furnace of affliction. For my own sake, for my own sake, I do this. How can I let myself be defamed? I will not yield my glory to another. (Isaiah 48:9-11)

All this is for your benefit, so that the grace that is reaching more and more people may cause thanksgiving to overflow to the glory of God. (2 Corinthians 4:15)

Jesus said this to indicate the kind of death by which Peter would glorify God. (John 21:19)

Now is my soul troubled. And what shall I say? ‘Father, save me from this hour’? But for this purpose I have come to this hour. Father, glorify your name.” Then a voice came from heaven: “I have glorified it, and I will glorify it again.” (John 12:27-28)