Because a greatsword takes a lot of steel, and a spear, not so much. Hence, when you look at the number of armed people involved in wars from the bronze age to the dawn of the gunpowder age, the vast majority of them were armed with pikes/spears and/or improvised weapons and only a tiny fraction...