Normally, a coauthor must contribute at least 2 things out of the list of: conceptualisation of the research, data collection, data analysis, writing and editing the paper. ChatGPT only does one of these.