Why do AI models sometimes give confidently wrong answers?