"Prayer" is an offense to any notion of an omnipotent diety with a supreme plan. The prayer is second-guessing the supreme plan and in doing so, challenges the supremacy of the diety.
Prayers for thanks are similarly pointless - if the manner of events transpiring was ordained by such powerful and infallable divine decree, why be thankful for it? It would have happened regardless of whether we're "thankful" for it or resentful of it.
I'll stop now. . .