Keep in mind that swords were expensive and time consuming to produce relative to other weapons. It wouldn't be unusual for other weapons to be abused and replaced like a tool, while a sword would be too valuable to replace and thus a warrior would often keep and maintain only one, building a more personal connection to it.
This was especially true in culture's where good, serviceable steel was hard to come by or difficult to produce, such as Japan. Samurai had a strong connection to their swords because of this, even if the Yari, Naginata, or Yumi were preferred in an actual battle. Samurai would pass a sword on to their child or repropose a broken sword into a spear or dagger because of this value in good steel, and the katana went on to have a reverence to it not unlike a religious symbol. When I did Kendo/Iai, we had a ton of rules on Katana etiquette, many seemingly arbitrary, but again, it was like a religious item.
Now remember which country a lot of media and pop culture comes from.