What you call "fire" is a process of rapid oxidation. Stuff combines with oxygen in the presence of heat, producing a new compound and a lot more heat, from the chemical reaction.
When elements form bonds between each other they form compounds. Compounds have different properties than what they are made of. Just like salt. Salt is made from ...
This solution provides reason behind water being inflammable when its constituents hydrogen and oxygen produce fire.