The reason for this rule is safety, and it has nothing to do with grooming, religion, or even hygiene.
Delta Air Lines had a stern response to an unruly passenger just prior to takeoff.