from natural selection’s point of view, it’s good for you to tell a coherent story about yourself, to depict yourself as a rational, self-aware actor. So whenever your actual motivations aren’t accessible to the part of your brain that communicates with the world, it would make sense for that part of your brain to generate stories about your motivation.
In one of Brene Brown’s books she talks about the power of narrative - how the brain seeks a coherent narrative - so we fill in, often with content that isn’t true and doesn’t serve