To extend this, group dynamics can come into play too.
I once worked at a startup that developed fancy new tec. The group dynamic there was that critical thinking absolutely did not exist. The reason was probably that they accepted only people in their circle, that had the same burning positive attitude towards the idea.
This can become a self reinforcing circle, because critically thinking people will leave at some point. (Like sabine did in physics).
Off topic, but a bent towards irrational optimism is necessary for progress. Generally, positive bias is needed for good mental health.
Probability shows that your idea will almost certainly fail, but you can’t believe that and put in the necessary effort to make it succeed.