Whether is call plotkai, plot no justu, or Ultra Plot Instinct Mode Purple this is how hit Shonen works.
Main character always gets an asspull save the day move near death to shock the teen/young adult audience and keep the story going until the author can invent a new villain that's even more of an existential threat than the last one. Secondary character gets his ass kicked as proof of the new villains power then the main gets beat until near death.
Rinse repeat until the audience loses interest and the show is not longer viable.