Now that's really an ancient lesson, which repeatedly happened in history.
This guy here for example was Kaiser Maximilian I. of the Holy Roman Empire of German Nation. He became king in 1486 and emperor in 1508, then died in 1519. Image by Dürer.
This was the time when the legendary Götz von Berlichingen was still alive. Berlichingen was in fact his subordinate, because as knight he only had to report to the king/emperor.
This emperor had 3 nick names:
- der letzte Ritter (the last knight)
- des Reiches Erzkanonier (First cannoneer of the empire)
- Vater der Landsknechte (father of the landknechts).
So quite the contradiction, what happened? The invention of gun powder happened. Maximilian wanted to improve how battle are fought, so he invested a lot into cannons. This is what gained him the nick name of first canonneer.
The last knight came from his favorite past time to held knight tournaments. So he loved knights still for tournaments, but not any longer as modern method of warfare. In his eyes it took way to long to train one, and there equipment was too expensive as well.
And since armored knights no longer made sense in this new era of warfare he invented the Landsknechts as new form of foot soldier: their weaponry was valuable, the soldiers a dime a dozen.
Maximilian liked his soldiers to be plentiful available and cheap. All this together put the knights to an end. So that cheap stuff outweighs small numbers of expensive stuff is a lesson he already knew back then.