The training data probably contained a large corpus from the site. Though the SO thread format, and the deliberative nature of the posts give indications of the correctness of the suggestion. With chatGPT, it may just spit out the