I also dislike this. I was doing my quests and suddenly some guard started hitting me.
2 seconds later I'm dead from some cheap, loser horde mage who was going around trying to get people to hit him.
I don't even know where the guard came from. It's not even anywhere near that area now.
Probably because you attacked him. Folks this isn't rocket science.
I did not.