The
hair
(or fur) that covers mammals allow them to trap body heat and be
endothermic
: maintaining a high internal body temperature.
This includes
whales.
Why do whales have hair?
They inherited the hair from their mammal ancestors.