Simply put, the water vapor being forced into the milk while it’s heating is what causes it to froth.