Why do you cut holes in the roof when a house is on fire?

During a fire, heat and smoke are trapped inside the home.  We cut ventilation holes in the roof to allow the hot gasses and smoke to escape which protects victims and firefighters as well as reduces the damage.