I am curious to know how that happened and how often did knights use other weapons, such as mace's, war hammer's, flail's and so on.
For mounted soldiers at least, that depiction is very inaccurate. This is a fairly common question on here, and I'll look for some other responses in a few minutes.
For knights, the primary weapon was a lance or a pole arm of some kind. This afforded better range, and were much easier to produce. Its also simpler to train someone to use a pole arm than a sword. Swords were generally side arms for knights, while the lance was their primary weapon. Think pistol/rifle in the modern armed forces. Like a sword, the pistol has lower range, and is harder to use accurately.
Heres one from about a year ago that gives a good explanation on why swords are romanticized - from u/cozyduck
Heres another, top comment is relevant to early middle age Britain - from u/PandaPornStar
This one explains that swords were status symbols, which was true in earlier periods, but not by the later middle age - from u/ADigitalWizard