I would imagine that he made the act of praying to be noticeable to others to act as a protest (e.g. typical head bowed and hands together). If he was simply standing there and minding his own business, then I can't see why there would have been any issue. The idea is that people should be allowed to make use of the health services without feeling undue pressure from others - it's typically a very difficult time for the people involved.