It is a mark of the love of God that he brings Job low; for this is where a creature ought to be. This is true for us as well.
We often pray for success. And yet so often success leads to pride, and pride to self-confidence, and self-confidence to independence from God, and independence from God leads to Hell.
The most deeply compassionate and merciful thing God can do is to humble us and bring us low so that we bow before him and lean on him and trust him. That is the first mark of the compassion of God: he loves enough to humble us.
Christopher Ash in his commentary on Job