That's more of a general D&D thing than a 5e thing.
Even back when the only classes were Fighting-man, Ranger, Paladin, Magic-user, Illusionist, Cleric, Druid, Monk, Thief, and Bard, you were still only looking at 3x classes that couldn't cast spells and only 2x explicitly non-magical classes.