I've always assumed it's because enchanted armor and weapons are just as effective at fighting/going against firearms and such. It's a weird alt history where the world of Azeroth wouldnt follow the same technological progression as real life.
Why invent a transistor when a magic little crystal does the same thing?