Water is a by-product of combustion.
Here's the Readers Digest version,
Combustion is a sequence of exothermic(heat releasing) chemical reactions between a fuel, most likely a hydrocarbon, and an oxidant, which will always be oxygen.
Water, more specifically water vapor, is formed in a...