Victor S E Moubarak says:
The thing is, when we try to understand God, and to fathom out His thinking and reasoning for various things that happen, we do so with a human point of view. We see things from our human perspective.
But God sees things from His Divine perspective. His view is not our view and His understanding is not for us to analyse and fathom out.
God does not ask us to understand Him. He asks us to trust Him and love Him.