How Hallucinations Emerge From Trying To Make Sense Of An Ambiguous World