When hot air rises it expands as the pressure is reduced. That expansion cools the air.
That is why thunderstorms develop on warm humid days. The warm air rises and as it cools the water vapor condenses into droplets or even ice if the air rises fast enough to get really high. When you get ice, then you can get thunder.