Question: why did the gryffindor sword disappear?
Answer: The sword, along with the Sorting Hat, are the only remaining relics of the Hogwarts Founders, as the others were turned into Horcruxes by Voldemort and subsequently destroyed in an effort to defeat Voldemort. Both belonged to Godric Gryffindor.