I don't think that's necessarily true. I've definitely seen LLMs hallucinating variables they never defined.