Tmux persists because the server owns the session, not your terminal
Tmux keeps sessions alive by moving state into a persistent server process. Clients attach via a Unix socket, so detaching preserves programs, layout and scrollback for later reattachment.