When the humans sealed the monsters away, they fled to the furthest reaches of the caverns.
When the monsters expanded, some decided to stay in the Ruins, finding comfort in the places the humans wouldn't reach.
This subsection of the Ruins is known as The Catacombs.