If you see a top that is spinning on a table and you see it drifting towards the edge of the table with nothing to stop it from falling off, you can reasonably be said to know that it is going to fall off of the table. Your pre-knowledge of this does not mean you are causing this to happen.
God knows every one and everything that will ever happen, good or bad, for all of time. Out of love, He allows us the free will to come to know Him through faith and reason so that we may have a free choice to choose to love Him in return.
For God to allow us to have a free choice, He restrains His own freedom and control; He allows for there to be a “not God”. He loves us so much that He withdraws inward into Himself to allow for a void, a silence, a darkness to exist where He is not. His freedom is bound so that ours is unchained.
If God were to utilize His knowledge to overwhelm our choices with His grace, or if He were to show us His full glory, our freedom would be compromised. Instead, we must come to know Him gradually through faith, reason, and trust. We must choose to love Him who is pure good, even in the face of suffering, evil, and temptation.
He knows each and every one of us and knows what we will ultimately choose before we are even created. So then why would He create someone who will eventually reject Him and embrace the evil and darkness, the “not Him”?
It is because He creates us out of love. He does not create us because He has some need from us; that our choosing Him or not choosing Him affects or changes Him in some way. Rather, He creates us because HE loves us, whether we love Him or not.
If He were to only create beings that would “choose” Him, then would there really be a choice? If His knowledge of all potential events in time caused Him to change His eternal act of willing creation, then this would violate who He is: all Loving, all Good, all Knowing, and all Powerful. If He acted in this way, it would be putting conditionality on His love; He would only create that which would reciprocate love back to Him.
This concept of God is a perversion. Rather, God creates freely and allows His creation to reject Him. He allows this because He can bring a greater good out of allowing this rejection than by preemptively negating its possibility.
For example, consider the disobedience of Adam and Eve. This resulted in a corruption of Human nature; a fracturing of our relationship with God. Our Human minds may wonder why on earth would a loving God allow humanity to fail from its very start?
But then look at what came after: the story of salvation. Through prophets, covenants, and finally the new and eternal covenant in His own beloved Son, who in the greatest possible outpouring of Love sacrificed Himself for our salvation, God brought about the greatest good possible.