AND JESUS SAID
“And now about prayer. When you pray, don’t be like the hypocrites who love to pray publicly on street corners and in the synagogues where everyone can see them. I assure you, that is all the reward they will ever get. But when you pray, go away by yourself, shut the door behind you, and pray to your Father secretly. Then your Father, who knows all secrets, will reward you.” Matthew 6:5-6
Some people, especially the religious leaders, wanted to be seen as “holy”, and public prayer was one way to get attention. Jesus saw through their-righteous acts, however; and taught that the essence of prayer is not public show but private communication with God. There is a place for public prayer, but to pray only where others will notice you indicates that your real audience is not God.