Sometimes the struggles in your life are meant to force you to see God as your only source of help. They are meant to make you see fully who God is to you and what He can be for you.
They force you to look at your commitment level to God. Make you pray more and be more sincere. They make you put your talk about how good God is to action. It makes you realize that there is power in your praise and prayers.