Why are you asking me? I'm not arguing for the existence of a god. However, the typical answer to that question is simply freewill, though, that contradicts the whole concept of prayer for if you pray for someone to get better for instance, you must intervene and affect freewill.