Confidence is inter-related to self-esteem. And the reasons for having low self-esteem can be many like- you didn't get the attention from whom you expected(parents, elder figure, teachers, friends), you had a bad past, rejections, you couldn't fulfill your parent's expectations(like good grades), etc.