I take this as evidence (albeit weak evidence) that Orcs are immortal, like Elves. Other, more elaborate, explanations can be imagined, but the simplest is that some of the Orcs recognized the swords because they had seen them before, during the First Age.
Of course, that idea presents many...