Why did people wear more hats in the past?