فَمَنْ سَأَلَ لِمَ فَعَلَ فَقَدْ رَدَّ حُكْمَ الْكِتَابِ
Whoever asks “Why did He do it?” in rejection of Allah’s judgment has rejected the ruling of the Book.
There is a fundamental difference between submitting to divine judgment and objecting to it as invalid. A servant is not charged with knowing every concealed decree; he is charged with accepting his Lord’s judgment and fulfilling his own obligations.