ChatGPT is just a predictive text algorithm. It doesn't "understand" language or concepts; it's simply predicting the next word in a series, based on an initial data set + using methods that have been in use for years in (for example) google