Agreed, it's definitely a bug, but the nature of the bug is somewhat of a hint towards the game's mechanics.
If it were as simple as NPCs being unable to trigger Fire Trap, it would suggest a bug - the fact they can trigger it, get the animations, but not the effect, while players do indicates that the damage calculation is not the same for NPC targets as for players.