I don't know, Star Wars has always tapped into both mythology and fairy tales. The trope of the prophesied saviour who will banish evil and restore order to the land is very common, as is the hero with a divine or semi-divine lineage.I admit that, on a personal level, I've never really liked the virgin Anakin birth or the chosen one prophecy. It's one of my least favorite additions to the prequel era and I honestly prefer to ignore it in my head canon, because I find it silly. YMMV of course.
The thing is, Lucas didn't just blindly lean into it, he actively subverted it.
Sure, Anakin starts off as the child pauper with a pure heart, found by a travelling wizard to be taken away to train as a magical knight who will one say save the world...but then it all goes wrong.
Anakin grows into an insecure, selfish, impatient and intemperate knight who has too much of a taste for battle and a skewed sense of justice. He repeatedly does things he knows are wrong, that even contradict the heroic self image he's built for himself, but can't or won't control his baser impulses. He's undone not by the duplicitous wiles of a seductress, or even poisonous words of a vile deceiver, but by his own ego, hubris and hypocrisy.
The magical order of knights it turns out aren't the exemplars of peace and justice they're made out to be, but a stagnant, failing order that has long since lost it's sense of purpose and he become so compromised, so complacent, and so arrogant that it can't see the rot that surrounds it.
Maybe Anakin was the Chosen One and he blew it. Maybe there's no such thing and the prophecy is all bunk, taken out of context or inaccurately transcribed. Maybe there's another explanation for Shmi's mysterious pregnancy that has nothing to do with the force and Anakin's unusually high midichlorian count was purely a coincidence. Maybe Gardulla habitually has all her female slaves of a certain age and utility sedated and artificially inseminated to increase her profits. It's not like she'd bother informing Shmi of this, because: "Who cares? She's property!"
The point of all this being: Anakin didn't turn out the way he did because of some prophecy, he turned out the way he did because this is what happens when you raise a person up based on faith alone and expect them to fix the world for you. Even worse, most of the council didn't even believe in him and acted like it was up to him to prove them wrong, which just left him in a weird limbo and drove a wedge between him and the Order that never really healed.
Personally, I think it was pretty ballsy of Lucas to explore that particular idea when he could have easily done a straight-up villainous backstory for Vader and made out that he just hid his true nature from Kenobi the whole time.