To limit the probability that fire will spread from rooms containing elevator machinery to other parts of the building, which could lead to harm to persons in the other parts of the building.
To limit the probability that fire will spread from other parts of the building into a room containing elevator machinery, which could lead to the failure of the elevator machinery, which could lead to harm to persons in elevator cars.