God formed an alliance based on the world as it is, full of flaws, whereas prayer calls God to account for the world as it should be.
Prayer is not a means of removing the unknown and predictable elements in life, but rather a way of including the unknown and unpredictable in the outworking of the grace of God in our lives.