The purpose of a jacket in hiking is to provide protection and comfort in various weather conditions. A hiking jacket serves as a shield against wind, rain, and snow, keeping you dry and warm. It also helps regulate your body temperature by allowing moisture and excess heat to escape, preventing overheating and perspiration buildup.