Warm air rises. This is a principle of convection currents. When a can, cold from the ice chest, is dipped into soapy detergent, and the can is then warmed, the warm air rises to form the bubble.