What did you expect? When you are the man trying to destroy the world the odds that you aren't going to get nerfed are slim to none.
Only the good prevails at all times which is why I still don't understand why Madara wasn't able to land one hit on RSM Naruto or Rinnegan Sasuke. He literally took all of the hits and fled like a *****y. Villains will never prevail and will always be nerfed another example being Kaguya is because Kishi is targeting a children audience here. We always want a good end to a story.
It emphasizes on the " Happily Ever After" part.