Why do you break window when you have a fire in building?

In order to safely extinguish a fire in a building it is necessary to create ventilation openings for superheated gases and smoke to escape. When required, this is best accomplished by breaking windows and sometimes cutting a hole in the roof.