Dogs do not have sweat glands as human beings.
They pant because as the saliva evaporates it cools them down.
Evaporation taken into chemical reaction in point of view is when atoms goes to a higher energy level, they will break into bonds during evaporation.
When this occurs the breaking of bonds will release energy thus cooling dog down.
It is very high in hot summer days because of high evaporation.