The sentence describes weather conditions that require protection (a hat).
'Hot' or 'sunny' weather would necessitate a hat. 'Boiling' is a strong form of hot. 'Steaming' and 'baking' can describe hot conditions but 'boiling' is often used in this context.