I'm guessing that the sample text was part of the training materials so it was the closest match rather than any "intelligence" artificial or otherwise.
It might be so. Even if the sample text was not part of training material the GPT-3 LLM is just correcting spelling and grammar based on previous words. So, there is no "intelligence", but gets the job done.