Try playing this game in your head with the prompt "Which country was Mahatma Gandhi from?" and you should be able to appreciate how ChatGPT magically comes up with answer "Mahatma Gandhi was from India."