Hot air rises, and through the convection cells on the Earth (Hadley cell, as an example) or the pressure belt (Subtropical low, subpolar high, etc) or even the jet streams, the air travels along and cools, releasing condensation if it can, and the cooling releases energy to other air particles.