NPC's sometimes speak wrong dialog

When selecting Armory in Training aide menu in Westmarch, the NPC says dialog she would normally say if player closed the dialog without selecting any option.

She does not say anything when other options are selected.

For example, she may say “Caution is often wise” or “At least you are not rash” when Armory is chosen. NPC normally says these lines when it is clicked and dialog is closed.

I have seen this sometimes with other NPC’s too, though not as often. It has happened with a blacksmith somewhere who had a quest option, and when it was clicked he said “Huh, back to work then” when in fact he should say it only when dialog is closed without selecting any option. I don’t remember what quest it was and where I encountered it.