I think the ChatGPT is a data-fetching algorithm. If you ask a certain question, it fetches data from the internet and presents a supposed answer. Probably information written by someone in the past. That might be why it fails logical questions.