The metaphor and simile in this excerpt emphasize the importance of Excalibur to King Arthur.
Indeed, the narrator is talking about the day he gained possession of the sword, and uses these literary devices to highlight how meaningful this event was to him and how it changed his life: "have worn it, like a king."