The fact that God knows everything does not mean that He is directly causing everything. He respects our freedom at our level. He makes it possible for us to act freely. If He didn't, we wouldn't act at all - we wouldn't be at all.
Source: www.realclearreligion.org