NYC has steam pipes under many streets

Am I missing something obvious here? Why would there be steam pipes under the streets? Or is that just incidental to some other use for the pipes? Needless to say, snow doesn't usually accumulates near a sewer grate...all that nice hot stuff (!) running into the sewer keeps it quite warm...YUCK!