Writer Anne Lamott says that our prayers fall into two categories: Please or Thank You.
The Bhagavad Gita says that every kind of worship is the right kind, even if we come to our chosen deity only at times of crisis (what might be called foul weather faith).
The divine that we choose to bow cares not one iota why you are bowing — that question is of the human realm. The realm of the divine only cares.