Good vs. evil is a storytelling motif that has existed since the first stories were told. The heroes clash with the villains, and while the villains may get the upper hand in the second act, they always lose in the end, leaving the heroes standing victorious as the dust settles.
Source:https://www.cbr.com/anime-villain-victories/