Another way to say "coats are used to keep warm" is "Warmth may be gained by a person who wears a coat."