According to the Botanical Society of America:
Today we know that it has short, stubby roots that contain fungi. And the fungi, extend in a web-like way through dead rotting leaves and connect up to the roots of conifers. The conifers provide sugar, which the fungi carry to the Indian Pipe plant. So it's really a parasite, but on fungi.
Still images via Wikimedia Commons