Its using the database of information pumped into it. If a billion people were to post on the internet that humans have wings and the database would be loaded with this data, ChatGPT would tell us that humans have wings.