Petrol floats on water because it is less dense, and water cannot mix with petrol as they are immiscible liquids. When water is poured on burning petrol, it settles below and the petrol continues to burn on the surface, actually spreading the fire further. Water cools by evaporation, but this effect is overwhelmed by the floating fuel layer continuing to burn.