The game has a system to save your character from dying to enemies spawned around you when you log in.
If you log out in a dungeon, or close to a creature spawn area, ((sewers spawn rats, so in this situation you logged out where rats will spawn in close proximity to your character)) when you log back in, the game teleports you to your latest safe location to save you from being killed when you are unprepared!