When files are permanently deleted on Mac (such as when the Trash folder is emptied), the space occupied by them is marked as available, allowing other files to overwrite it. Until that happens, permanently deleted files can be recovered.