The prophecy was made long before KOTOR. Remember Yuthura Ban? How she talks about the "Sith'ari", the one person who will lead the Sith to power (or something)? She was talking about "The Chosen One", just in the Sith perspective.
And Anakin did lead the Sith to power - he just also destroyed them in the end.