Question: why did gryffindor have a sword?
Answer: Gryffindor defended himself with his wand, but did not kill his attackers. ... In the days before the International Statute of Secrecy, when wizards mingled freely with Muggles, they would use swords to defend themselves just as often as wands.