In Philosophy, there is a concept called the Problem of Evil. The idea is, if God is so good, why is there so much bad in the world? There are several answers to that question. One of them is soul-making. God lets bad things happen to good people because they can help make those people better. Negative experiences can have a positive impact on a person's life.
However, the operative word here is can. Rough experiences can make a person better. A lot depends on the person's attitude. Someone going through hard times might turn to the Lord and develop traits such as patience, faith, and empathy, or they might turn away from the Lord and develop traits like despondence, bitterness, and anger.
Hardships will befall everyone. It's part of why we're here. But how we respond to our hardships will largely decide what effects they have on our lives. The choice is ours. Soul-making is not a passive experience. We have decide whether our trials will crush our souls or make them stronger.