The message of Job is that we must trust God’s wisdom when we encounter suffering or crises, rather than attempting to figure out answers to the “why” questions. We should not think that the cosmos itself reflects God’s attributes of justice or that we can hold God accountable to running the cosmos according to justice moment by moment. If he were to do so, none of us would survive, for we all embody injustice at some level in our sinful condition. So justice would involve punishing us.
Trusting God’s wisdom does not mean adopting a belief that everything that happens to us ultimately represents justice even though we cannot see why that is so. Trust is not the conviction that there is a good reason (=explanation that justifies the suffering) even when we cannot fathom it. In other words, the book does not suggest a hidden, deeper justice behind what we perceive as injustice. If we were to think in those terms, we would still be clinging to justice as the foundation of the system and simply theorizing alternative ways that it could function, as Elihu did.
Instead, the book posits that God, in his wisdom, is willing to allow injustice in this world—perhaps sometimes as a means to a greater end, but even that does not offer an explanation that justifies the suffering. We can assume that it grieves his heart, for he is just. In his wisdom, he elevates purposes above reasons… Even here, however, we must tread carefully. We cannot know reasons, and we cannot assume that there are reasons. We should assume that there are purposes, but that does not mean that we can or will ever know those purposes. The injustice, suffering, trials, and crises that we experience shape us into the people we are and the people God desires us to be. The truth is not intended to bring comfort to those suffering, nor does it do so. It is meant to bring understanding that might prevent us from committing Job’s error, which is the easy solution of blaming God. The alternative is to trust God.
John H. Walton, Job (The NIV Application Commentary), 415.