You kinda answered yourself there.
First you go thru that path as a sort of mini-shortcut, but when you grab the key, you are forced to take the much narrower hallway at the top, in wich you're more likely to get hit by zombies.
It's... a trap. Indeed kinda small and meaningless but does it's job.