If Sakura blames Naruto for something that's not his fault, especially in relation to Sasuke. For example, if Sasuke leaves again and Sakura blames Naruto for not being able to stop him, Naruto might tell her off. He's trying his best and doesn't deserve to be unjustly accused.
Sakura's obsession with Sasuke. Naruto might be fed up with how Sakura always puts Sasuke first, ignoring the people around her who truly care about her, like Naruto himself. So he tells her off to make her realize her wrong priorities.
Well, it could be that Sakura makes a really bad decision during a mission, like endangering the whole team because she was being too overconfident. Naruto, who has grown tired of her reckless behavior, tells her off. He might say things like 'Sakura, you can't keep acting this way. You're putting all of us at risk!'
One possible plot could be that Naruto has finally had enough of Sakura's constant nagging or her one - sided focus on Sasuke. So he tells her off in a moment of exasperation, perhaps pointing out how she's been neglecting their friendship or the team spirit in pursuit of Sasuke.
In this case, Sakura could be seen as the antagonist, at least in that particular moment when Naruto tells her off. Since Naruto is the one doing the telling - off, it's because of something Sakura has done or said that has pushed him to that point.
One reason could be that Naruto has always been more attracted to those who understand his outcast past better. Sakura doesn't really have that kind of connection with him as she comes from a more normal background. So there's a lack of that fundamental understanding between them which hinders any romantic feelings.
Perhaps Sakura is in a situation where she thinks Naruto's actions are endangering the village or their friends. In the Naruto universe, they often face difficult choices and she might believe that Naruto's continued existence is a greater threat than his death at that moment. It could also be that she has been poisoned or affected by some sort of jutsu that clouds her judgment and makes her say such a cruel thing.
In some fanfics, Naruto may ignore Sakura because he has his own emotional traumas to deal with. He might find Sakura's presence a reminder of things he wants to forget or move past, so he chooses to keep his distance. For example, if he has faced a lot of rejection from her in the past, he could decide to just cut her out of his life.
One reason could be jealousy. If in the fanfic, Sakura gets closer to someone else Naruto cares about, like Sasuke in a different way than he expected, it might make him hate her. For example, if Sakura teams up with Sasuke against Naruto's wishes in the fan - created plot.
In some fanfictions, it could be due to unrequited love. If Naruto has deep feelings for Sakura but she continuously rejects him in a cruel or thoughtless way, Naruto might feel angry enough to seek revenge. For example, she could publicly humiliate him for his feelings, which would hurt Naruto deeply and lead to thoughts of revenge. Another reason could be a misunderstanding. Suppose Sakura is misjudged by Naruto as having done something terrible when in fact she was innocent. But Naruto, in his ignorance, decides to take revenge. This can create a lot of drama and conflict in the fanfiction.
Well, it could be that in this fanfiction, Naruto has some sort of hidden agenda. He might call Sakura ugly as a form of reverse psychology. He could be thinking that by doing so, she'll prove him wrong and become more confident. Or perhaps there's some miscommunication or misunderstanding between them. For example, Naruto misheard someone talking about Sakura in a negative way regarding her looks and he wrongly believes it, so he says she's ugly.
Perhaps there was some sort of dark influence at play. In the world of Naruto, there are often dark forces and genjutsu (illusion techniques). It's possible that Naruto was under the influence of a genjutsu that made him see Sakura as a threat, so he punched her in self - defense without realizing it was an illusion.