There is more than one correct answer in reality, LLM pre-training just trains it to respond the same way as the text did.
Imagine if school only gave correct if you used exactly the same words as the book, that is not "trial and error".
Imagine if school only gave correct if you used exactly the same words as the book, that is not "trial and error".