The only time I've seen things like this happen (and it's not just in PoP either) is when a summon or a hireling attacks the NPC while it's spawning in, causing it to aggro before completely spawning in/before the "I'm an NPC and immune to damage" flag activates, resulting in an immortal unable-to-be-targeted-with-attacks NPC attacking you.