Because Allah, the Blessed and Exalted, is not questioned about what He does, but they will be questioned. We must show proper manners with Allah.
The Blessed and Exalted, in the way we ask questions. We do not say: Why does Allah do this, why did Allah say that, why did Allah. We do not say "why" regarding Allah. Rather, the way to ask is: What is the wisdom.
Where we want to understand, because Allah does not do anything except with wisdom, the Exalted. And Allah, the Blessed and Exalted, says: He who created death and life to test you.
And Allah, the Blessed and Exalted, created good and evil as a trial, a test.
And the head of evil is Iblis. Allah created him as a test and trial, de Verhevene.
This is the apparent wisdom, and knowledge belongs to Allah, de Gezegende en Verhevene. But the point is that Allah tests us and tries us: do we obey or disobey? Do we follow Him or not?
And so it is, and knowledge belongs to Allah, Verheven en Hoog is Hij.