I think when you pick up a quest item, the game teleports you to a different room that looks the same, but the enemy is now an item.
Very good explanation ;)
Just and exit in the same place of the item to pick. The new room has an item with the same picture of the sprite