Here’s a model of self-confidence. People meet you and they decide if they admire/respect/lust after you. You can tell if they do. When they do you learn that you are more admirable/respectable/attractive than you previously knew you were. Knowing this increases your expectation that the next person will react the same way. That means that when you meet the next person you are less nervous about how they will judge you. This is self-confidence.
Your self-confidence makes a visible impression on that next person. And it’s no accident that your self-confidence makes them admire/respect/lust after you more than they would if you were less self-confident. Because your self-confidence reveals that the last person felt the same way. When trying to figure out whether you are someone worthy of admiration respect or lust, it is valuable information to know how other people decided because people have similar tastes on those dimensions.
And of course it works in the opposite direction too. People who are judged negatively lose self-confidence and their unease is visible to others and makes a poor impression.
For this system to work well it must escape herding and prevent manipulation. Herding would be a problem if confident people ignore that others admire them only because they are confident and they allow these episodes to further fuel their confidence. I believe that the self-confidence mechanism is more sophisticated than this. Celebrities complain about being unable to have real relationships with regular people because regular people are unable to treat celebrities like regular people. A corollary of this is that a celebrity does not gain any more confidence from being mobbed by fans. A top-seeded tennis player doesn’t gain any further boost in confidence from a win over a low-ranked opponent who wilts on the court out of awe and intimidation.
Herding may be harder to avoid on the downside. If people who lack confidence are shunned they may never get the opportunity to prove themselves and escape the confidence trap.
And notwithstanding self-help books that teach you tricks to artificially boost your self-confidence, I don’t think manipulation is a problem either. Confidence is an entry, nothing more. When you are confident people are more willing to get to know you better. But once they do they will learn whether your self-confidence is justified. If it isn’t you may be worse off than if you never had the entry in the first place.