The tongue serves as a cooling system for dogs by panting and evaporating water from their tongue and mouth to release heat, especially during intense exercise or excessive heat. Dogs use their tongue to gasp for air which allows water to evaporate and release heat from their body, acting as a cooling system when they need it during situations like heavy exercise or high temperatures.