Why Does God Call Us to Pray When He Already Knows The Answer?

So why does the Lord call us to pray, when He already knows the answer? I believe it has less to do with the situational outcome and more to do with our eternal outcome.