Etymology
Today it means: A language which has lost its speakers. Full definition →
By analogy to ghost town.
Etymology from Wiktionary, CC BY-SA 4.0.