Panting refers to breathing quickly and loudly through mouth. It. helps dogs to get rid of excess metabolic heat when they are hot or engaged in vigorous exercise.
This happens because panting helps dogs to circulate the necessary air through their bodies to cool down.