Sure God knows all, but He also created us with free will!
And that means that even if He knows the outcome, we often don't, and ourselves determine a large part of it through our own decisions.
(Indeed, I take being "made in the image of God" to mean that in this life, we have that free...