How does dumping water on fire extinguishes it?
Water cools the burning fuel below the ignition point
The reason water extinguishes a flame is because it is exceptional at absorbing heat. Water takes up a lot of energy to increase its temperature and to transform into steam, so dumping a large quantity of water on a fire will decrease temperature down to a level where the flame would not be able to propagate.