Vertical curves are provided to join two different gradients along a highway to maintain a smooth vertical profile of the road. These curves allow the road to change from an ascending grade to a descending grade or vice versa without abrupt changes in elevation, preventing jolts and providing better visibility for drivers. Properly designed vertical curves are crucial for preventing accidents and enhancing the overall driving experience on roads.