Man does not have to judge God
Summary
We cannot "judge God". By definition, his power and intelligence surpass human beings in every way. So we must assume that God does everything he does for reasons that escape us, but which are by nature perfect according to his qualities.
Cf. Book of JobQuotes
“If God exists, he is perfect; if he is perfect, he is wise, powerful and just; if he is just and powerful, my soul is immortal; if my soul is immortal, thirty years of life are nothing to me, and are perhaps necessary for the maintenance of the universe. If I am granted the first proposition, the following will never be shaken; if it is denied, there can be no dispute about its consequences. [...] All the subtleties of metaphysics will not make me doubt for a moment the immortality of the soul, and a beneficent Providence.”