So many get this backwards.
The languages (there are multiple, including historical languages that explain the transition into the modern languages) came first - by about 40 years.
He did not invent languages for his world. He invented a world to explain how his languages would come to exist.