God chose not to know.
Have you ever been shocked in a dream? As in running away from someone, running around a corner and BAM! they’re right there. What a shock! Did you know they’d be round the corner? Obviously not, or you wouldn’t have woken up in such a fight. But where did the dream come from? Your own mind surely. So did you know what was round the corner? On some level the mind knew it and didn’t know it at the same time. It’s the only way to explain how your mind both produced the dream and was shocked by the dream at the same time. On some level your mind chose not to know what it knew for the purpose of the dream playing out.
This may be an analogy for the sense in which God chose not to know what humans would do in order to give them room for free action and to be fairly held accountable for their actions. If us mere humans can compartmentalise our knowledge in a dream, can’t almighty God choose not to know some aspects of the future if he so desires? Surely he can. The witness of scripture is that God offered humans a genuine choice and not a foreknown one. This is what necessitates that God chose not to know whether humans would obey or rebel.