As humans, there's only so little we can prevent from coming our ways. We are not invisible. There definitely will be tough times and the truth is that we cannot stop them from happening. There are certain situations on our own we don't hope for it to happen to us but just because we don't hope for it doesn't mean that they won't come.
It may not even be about us. We may come across people in life and we see them going through a very rough phase and it seems really unfair that they should be in that position. However the case is, God is aware of all these.
2 Thessalonians 1:6
Since indeed God deems it just to repay with affliction those who afflict you and to grant rest with us to you who are afflicted.
7.When the Lord Jesus is revealed from heaven with his mighty angels in flaming fire.
God see everything that goes on around the earth. God is one that is considered to be just. He never fails to vindicate those who are afflicted by the wicked ones. God never forsakes the helpless.
Lamentations 3:33
For he does not afflict willingly nor grieve the children of men.
It is not of God to cause affliction upon someone for no just cause. Everything in God's will for us is always good. He is more interested in what will better our lives because of His loving nature.