Literally, what chatGPT is doing is predicting what the next word in the sentence should be based on what data set its been trained on. it has no understanding of language. It like saying a machine built to push the gas pedal of a car understands what it means to drive and why.