A jacket is commonly worn for protection in winter; a raincoat is worn for protection from rain. The analogy is based on condition → protective clothing.