Dissolved air coming out of solution in the pipes. The nitrogen component of the air doesn't come out of solution easily but the oxygen and co2 will. Hot water in the lines cools after being shut off. As it cools the dissolved gasses come out of solution in the form of bubbles.