Boiling water can extinguishes fire more quickly. The hot water sprinkled on the burning material is not only for cooling, but also for reducing the oxygen around it with converted steam. Cold water to absorb a lot of heat. As others mentioned already, heat is one of the component to remove to extinguish a fire.