Elon Musk said that Egyptians that knew how to do pyramids perished and then nobody knew anymore how to do Pyramids.
That is why he is making Spaceships, because they know and can, and in case of a cataclysm humanity won't know how to do spaceshipds for decades or centuries.
What do you think of Bitcoin if the knowledge is lost? Will it be able to survive?