We live in an imperfect world, and not all of our sufferings are the result of our own doing. Blaming victims might be expedient, but it is not healing. Telling a person to repent or come to God does not always make sense. As the story of Job shows, not all of our sufferings come to us from God, and God cannot always bring an end to our pain. We live in an imperfect world.
Innocent people face afflictions that have no good reason or cause.
Job eventually reaches a place where he becomes so fed up with his comforters telling him that he has done something wrong that he wants to take God to a court of law. I myself and no other. The story of Job remains a heart-wrenching one for people of diverse religions because it reminds us of the randomness of suffering. Sometimes the wicked prosper, and sometimes the merciful suffer. When we try to explain all suffering in a rational manner, we lose sight of what suffering and life are all about.