Freedom of religion gives the man the right to do so, but God specifically told him not to "be as the hypocrites are: for they love to pray standing in the synagogues and in the corners of the streets, that they may be seen of men." (Matthew 6:5 - KJV) Sure seems like he chose that time and circumstance to be seen by as many men as possible.