David it looks like plumbing vent. Since traps stop the gasses from coming into the house, vents are installed to give those gasses a place to go. Otherwise, pressure would build up in the system. When it rains, the water goes into the plumber and drains like any other water. At least that’s my understanding of how it all works. Someone might be able to elaborate more.