ChatGPT has no concept of a model for code, no understanding of syntax or logic or even language keywords. It just pulls info out of it's backside that sounds believable like a lot of people do, it's just better at it. I suspect the immediate future will be resplendent with tales of AI-generated code causing catastrophes.