Question: are hats allowed in pubs?
Answer: Because hats can obscure your face from security cameras, hats could be used to maintain anonymity after committing a crime. In order to prevent this and maintain accountability, the rule is put in place against wearing hats.