X selections (PRIMARY and CLIPBOARD)
How X11 moves text between programs: two parallel clipboards and an agreement that the data only exists while the sender is alive.
X has named selections, two of which matter. PRIMARY is set the moment you highlight text and is pasted with the middle mouse button. CLIPBOARD handles the explicit copy and paste that other systems simply call the clipboard. A third, SECONDARY, was specified and then ignored by nearly everyone.
Nothing is copied when you select. The program merely announces that it owns the selection, and when someone pastes, the two negotiate a format through atoms such as UTF8_STRING before any data moves. The rules are in the ICCCM. The upshot is that copied text disappears when its source program closes — the reason clipboard managers exist — and that a stray middle click still pastes whatever you highlighted fifteen minutes ago.