After reading a couple of published adventures and playing a bit as a player, I have an impression that some (most?) DMs shun using NPC spellcasters unless it is a BBEG.
Me personally, while running DnD standard, magic-abundant worlds, I use at least a few low-level spellcasters in any humanoid...