Science
Answer
CO2 is stored at high pressure as a liquid in cylinders. When released from the cylinder, it expands enormously in volume and cools down. Being heavier than oxygen, it forms a blanket around the fire. As the contact between the fuel and oxygen is cut off, the fire is controlled. It also brings down the temperature of the fuel.