Anakin Skywalker grew up with a single mother. There was no father there to shield him from all the feminine attention and coddling that he got from her; and perhaps to teach him through his presence that one will, in life, always have competition over a woman’s affection and, often, lose.
Be it as it was, he was her one and only object of love, lacking siblings as well. He was parentized in another way, too, in that he was, at an age of, what, 8?, the one working and making sure that there’s food on the table; at least that is my impression. Granted, they were slaves, but we do get to meet him through the work he does for that flying insect thing. He developed considerable skills and got praise for that – but he also got used for it.
All this developed in him a superiority complex. As a young boy, he already shouldered the emotional and wordly responsibilities of an adult male. One can only wonder how much his own emotional needs got neglected for this. In his own eyes, he must have been quite a superhuman being. Taking care of his mother, the big love in his life, and getting all her praise.
When he meets Amidala at a later stage in life, having long been separated from his mother, he got infatuated with Amidala. Surely the fact that she reminded him of that time back on Tatooine was an important factor to him. He wanted to be to her what he had been to his mother: The one and only recipient of her love and attention and praise. Her hero.