Boiling can enhance the flavor of food by infusing herbs, spices, and seasonings in the cooking liquid.