Doors are surprisingly effective at sealing out smoke (especially interior doors with good seals).
Oxygen is preserved: The fire consumes oxygen in other rooms, but your room retains breathable air.
Flames are slowed: Fire must burn through the door (or around it) before it can reach you.
The numbers:
Closed-door room temperature: Under 100°F (survivable)
Smoke levels: Minimal (breathable)
Survival time: Extended significantly (extra minutes to escape or be rescued)
The bottom line: A closed door can mean the difference between life and death.
The UL Firefighter Safety Research