People wear hats to keep the sun out of their eyes.