God uses problems to correct us.
Problems, when responded to correctly, are character builders.
"It was the best thing that could have happened to me, for it taught me to pay attention to your laws." Psalm 119:71-72
Some lessons can only be learned in the darkness, through pain and failure.
"Sometimes it takes a painful situation to make us change our ways." Proverbs 20:30