Years ago I read that in the early years of the US there existed a huge number of different varieties of apples, as compared to the skimpy selection now available in supermarkets. (just googled & found this)
There are seed banks and culture tissue banks around the world, plus any number of botanical gardens engaged in preservation. I found this article on one preservation attempt most interesting. Click the quoted text for the full story.