I think once you get to a certain level, you should be able to go into those hallways and find maybe skeleton key bosses, or books with instructions of how to reach new worlds. I don't know, but something like that. They should definitely be used for something.