Often at altitude you have a situation where ther is sufficient water vapour in the air to condense. Although this does occur naturally (forming clouds) it can be induced by adding condensation nuclei, cloud seeding uses Silver Iodide or (usually) dry ice, but if there is sufficient vapour engine exhaust is quite effective (sometimes the fuselage is enough to do it, but generally many small particles are more effective)