 The air forms bubbles in the pipe.As the bubbles go down the pipe they are pressurized proportionally to the hydraulic head, which is the height of the column of water in the pipe.The compressed air rises to the top of the separation chamber (wind box).