In free surroundings, a jet of fluid entrains and mixes with its surroundings as it flows away from a nozzle.
When a surface is brought close to the jet, this restricts the entrainment in that region. As flow accelerates to try balance the momentum transfer, a pressure difference across the jet results and the jet is deflected closer to the surface - eventually attaching to it.
Even if the surface is curved away from the initial direction, the jet tends to remain attached. This effect can be used to change the jet direction. In doing so, the rate at which the jet mixes is often significantly increased compared with that of an equivalent free jet.