Omniscient God makes perfect decisions, however he isn't in the business of reading our minds and making all these perfect decisions for us as some sort of overgrown cosmic butler. Prayer exists at the intersection of these truths.