I am a big fan of Cthonic Underdark Dungeons spawning and growing.
The OSR game
Nightmares Underneath has this as one of its premises:
"In the Kingdoms of Dreams, all is right with the world—except for one thing. Even though the Law has triumphed over the powers of Chaos, banishing idolatry and superstition in favour of science and reason, humanity is still threatened by a dangerous, otherworldly force. The Realm of Nightmares invades the physical world, sending incursions in the form of dungeons to undermine and destroy society."
"The justification for dungeoncrawling in this setting is that adventurers are raiding nightmare incursions, to find the treasure that keeps an incursion anchored to the physical world. Once the treasure is looted, the incursion is destroyed, and the adventurers profit. Individual creatures made of nightmares can be killed, but as long as the incursion exists, it will continue to spawn more."
I played a paladin type with this viewpoint as the basis for why he would dungeon crawl if he found a dungeon. It works for explaining new levels below a prison and why authorities need somebody (PC prisoners) to check it out. Also for why there are monsters and traps and treasure.
Another similar concept is the 4e god Torog, The King That Crawls, god of the Underdark and Torture and Jails. He is a god of bindings having bound primordials and himself being bound to the underdark. His thrashing around in the Underdark after being eternally wounded and cursed by the Primordial he defeated and bound caused the great tunnels and the magic of his blood infused a lot of the underdark with his might and cruelty. Him spontaneously connecting the underdark to a prison works well.
Earthdawn had an (essentially cosmic)
Horror that was similar to Torog but focused on traps, they would spontaneously generate around it as it moved.
13th Age has living dungeons such as the
The Stone Thief that move around and change internally and can connect to different places such as a dungeon. This is a bunch like Daedalus's Labyrinth in the Percy Jackson series, including spawning traps and monsters internally and changing its layout over time.