The principle of influence is consistency; in psychology, it refers to the tendency to justify or establish coherence between the thought and the actions performed. It is a way to reduce cognitive dissonance
.
In this case, people after betting to reduce their cognitive dissonance have more confidence that they will win since they already made the bet.