Because of the way things are this day and age, some places dont allow you to wear hats hoods or crash helmets, because of security reasons. I dont think the barman singled you out, its more than likely a company policy, and no matter who was in there they would ask you to remove an item of clothing that obscures your identity.