Why Does Fire Burn on Top of Water?

Water cannot burn. If you see a fire burning on top of a body of water, you can be sure that there must be something floating on top of the water.

For instance, oil can float on top of water, and this layer of oil can indeed burn.