At the gym, guys wear hats to keep perspiration out of their eyes and to absorb extra moisture in their hair and scalp.