There is always a reason.

I believe everything happens for a reason.
People change so you can learn to let go.
Things go wrong so that you can appreciate them when they are right.
You believe lies so that you can learn to trust no one but yourself.
And sometimes good things fall apart so that better things can fall into place.
So when something bad happens to you, learn from it and don’t just waste time worrying. Each mistake that is made is a chance to learn but, a mistake made twice is a decision.
Have fun and learn from your mistakes.