I found I had deleted a file I needed to keep, so I used the File Vault icon in the top right, and selected "Enter Time Machine".
After successfully restoring the deleted file from a snapshot from several days ago, I realised that my NAS - which functions as my backup disk, had been turned off the entire time. The Time Machine icon had the usual exclamation mark in it for when the backup disk is unavailable.
How did Time Machine restore my deleted file, when the backup disk was not available?