I think it's learned. I go out of my way to give my kiddo as many opportunities to try new experiences and make decisions (under guidance) as possible, so he can develop confidence in himself.
There are those with innate confidence and those that gain it in life. Generally if you're feeling good about yourself and who/what you are then that can be a real confidence booster.