As you all know, Qatar is a place with heavy rain, almost every day.
Because the crew were not wearing the hats in the rain, they got sick often and company had to do something about it. So, here is this rule that hat should not be removed under any circumstances unless you are taking your rest.