Question: why does neville have the sword of gryffindor?
Answer: Neville got the sword during the Battle of Hogwarts when the Sorting Hat provided it to him. ... When harry was in chamber secrets fight with snake that time the bird “fawkes” (phoenix) just dropped sorting hat near harry then he found godric gryffindor sword in hat to kill snake.