When a guy ejaculates into the vagina or anus (or both if he can)of their female partner or into the anus of their male partner and a pocket of air forms because he pulls out to fast it pulls that air pocket (along with his left overs) causing his sperm to create bubbles.