ESCAPE in the event of Fire.
Our house originally had all the bedrooms connected. Then later (early 1900s), some walls were moved and there was a central hallway between them. The connecting doors were later removed.
I wonder if when they are both present, its just that no one spent time to remove the old doors. Either way, I also wonder what was behind connecting all the bedrooms vs accessory hallway.