There are billions geography facts on the internet. This includes fictional data sets too from popular SF/fantasy.
There are millions of human<->human interactions where geography facts are discussed, some of them accurately, many of them not.
Train a LLM on all that. Ask it geography questions.
The results will be the most likely next chain of text based on all those weighted interactions. That's it. There's no lying, no truth. It's making predictions.