To limit the probability that a firewall will have insufficient fire-resistance, which could lead to the spread of fire from the building to an adjacent building, which could lead to damage to the adjacent building.
To limit the probability that fire will spread from the subject building to an adjacent building during the time needed for emergency responders to carry out their duties, which could lead to damage to the adjacent building.