This is only used to generate steam for recipes. The space age foundry has a recipe to turn steam into heavy oil for example. Also, many mods uses steam as an ingredient.
Creating an infinite power loop is extremely frowned upon in factorio community, because its basically cheating and trivializes the entire puzzle aspect of the game.