If you kill something you cannot see, the object is produced with the note "dropped by an unknown monster". The anti-stacking mechanic notwithstanding, presumably the premise is that you looted the item from a corpse. You should know what was carrying it. That goes double when you detected the monster prior to killing it.
[edit] I guess I should have said drops not in view. LOS isn't the problem in an unlit corridor.
[edit] I guess I should have said drops not in view. LOS isn't the problem in an unlit corridor.