Why do I see a "Put Back" menu item in the trash for only some items?

When I control-click on some files in the trash I see the "Put Back" menu item:

enter image description here

However, on other files I don't see this item:

enter image description here

Why is that?


You only see Put Back if a file/folder was deleted by the Finder, not any other process.

It will silently fail to Put Back if the folder it came from is gone, but it will still offer.

Tested on Mojave.