For the large majority of NPCs living in the Mansion, they are quite happy and content with their time here. For the NPCs, their time in the Mansion is temporary, and they can leave and return whenever they want. It is only the player party that is stuck in the Mansion.
The party must befriend, subdue, or defeat @The False Queen to be allowed to leave the Mansion grounds, return to their original life, and win the game. However, if the party does destroy The False Queen, all the NPCs will become hostile to the party for ruining their ideal rooms, you can leave the Mansion, however you will have to get through the angry residents who were just evicted. Always more beneficial to befriend or subdue the queen.