People wear clothes to maintain a body temperature higher than the temperature of their surroundings.  The expression "dress warmly" is a command to a person directing them to wear sufficient clothes.