What is the philosophy of prayers?

Since prayers remind man of two of the most powerful deterrents – the Origin and the Resurrection – it thus possesses a deterring influence with regards to indecency and evil.
A person, who stands up for prayers, recites Allahu Akbar and regards Allah to be superior to and greater than everything else.