Why do generative AI tools hallucinate?