Most people don't play D&D to be a common foot soldier.Lack of polearms is a typical D&Dism even though the real medieval foot soldier carried almost always polearms due to their familiarity with them as field implements and their ability to discount cavalry and penetrate their armor.
Even when they had swords, it was typically a secondary weapon while the spear was a primary weapon.
It's partly because the sword is regarded as a high status weapon for historical reasons. Swords contained more metal, were more expensive to make and thus only the wealthy could afford them.
While the spear may have been the most popular offensive armament of the Middle Ages, the sword was certainly the most celebrated. Swords were intricately made, expensive to own, and generally passed down from generation to generation. They were also frequently named, with King Arthur's "Excalibur" and Roland's "Durendal" being perhaps the most famous.- Medieval Military Technology (1992) Kelly DeVries
It is.Is it? I don't see that. Care to explain?

(Dungeons & Dragons)
Rulebook featuring "high magic" options, including a host of new spells.