Avoiding spoilers, one of the major quests has you approach and help someone fight some monsters. In that same place there is a skeleton with a key in it for a different side quest.
After you finish fighting the monsters, a dialog cutscene triggers with the person you just helped, but there is a small window of time between the combat ending and the dialog cutscene starting when you actually loot.