Another way to say "a coat is used for keeping warm" is "Warmth is a purpose of a coat."