It's actually really simple. An ability to see the world accurately was never a necessary condition for survival, so long as the model in your head was good enough to assure you could eat and reproduce.
People walk around with false stories/narratives (and increasingly intricate ones at that!) in their head not because it served some evolutionary purpose, but instead because it just wasn't consequential enough to prevent survival.