This is most likely because hidden enemies are spawned during many raids who carry out mechanics (such as area attacks) but you can't attack them back. They can be considered enemies by the game so when they are removed after the mechanic is over, it's possible it thinks you "defeated" them.