Cognitive bias.
Optimism bias is an unconscious cognitive bias.
It leads to overestimating the likelihood of success of our ideas and intentions.