Each of the villains in the Prequels represent what Anakin becomes and serve the appropriate purpose within their respective narrative.
Darth Maul = Hatred.
Darth Tryanus = Former Jedi that falls to the Dark Side.
General Grievous = More machine than sediment being.