Very rare and odd but and I dont know what exacly causes it, but I have seen a few NPCs not using their designated weapons.
Oddly enough this bug only with tin cans, using hammers instead of their AR, I have yet to see any crossbow user or sniper use their knife or something.