I'm not sure if this is thermo as it is buoyancy! I know warm air is less dense than cold air so it rises.
I can't think of a thermodynamic reason for the warm air to rise. What is the thermodynamic reason for a light object rising in water?
i forgot second part:
The work on surrounding is because energy is transferred from the warm air to surrounding. Energy diffuses from hot to cold, yes? If energy is transferred to something, then work is done on the object.
I rub a brush against the wall to heat it up. I am doing work on it. Pressure causes a piston to reduce its volume. Work is done on the piston system. When the the gas is heated up and it expands, then the piston pushes up and does work on the surrounding.