It could also be due to some external factors. For example, the village elders might put pressure on Naruto to stop trying to save Sasuke because they see Sasuke as a threat. Naruto might be forced to choose between the village's safety and his friendship with Sasuke, and in the end, reluctantly give up on Sasuke.
Maybe Naruto gets tired of always chasing after Sasuke. He has his own life and dreams too. He might think that he has sacrificed enough of his time and energy on Sasuke, and it's time to focus on himself and the village. He could start to believe that Sasuke has made his own choices and he can't keep forcing Sasuke to come back.
One reason could be to create a lot of angst. If Sasuke cheats, it would deeply hurt Naruto and cause a rift in their relationship, which could lead to a lot of emotional turmoil for both characters. This would make for a very dramatic story.
A moment of desperation. For example, if one of them is about to die in the alley due to an injury or a curse. The other, in a rush of emotion, kisses them as a way to convey all the unsaid things, all the love and friendship that has been there all along.
It could also be due to a misunderstanding. Perhaps there is some misinformation spread about Sasuke in the fanfiction, like false rumors that he has a hidden and malevolent plan. Naruto, being someone who values their friendship deeply, would be scared at the thought of Sasuke turning into an enemy because of these untrue stories.
Another possibility is that Naruto was trying to protect someone else from Sasuke. Suppose Sasuke was on a path that would endanger another important character in the story, like Sakura. Naruto, in his eagerness to safeguard Sakura, might have accidentally hurt Sasuke while trying to stop him from taking any harmful actions.
One possible reason could be his thirst for power. He might see Naruto as an obstacle in his pursuit of greater strength. Maybe he believes that by eliminating Naruto, he can prove himself to be the stronger one and gain more recognition in the ninja world.
Another reason might be related to their different ideologies within the ANBU. Naruto may have believed in a more collaborative and friendly approach within the organization, while Sasuke might have been more focused on individual achievement and power. This fundamental difference could lead to Naruto hating Sasuke in the fanfiction.
One possible reason could be to protect Hinata. Maybe Sasuke has unknowingly made a move or decision that Naruto perceives as a threat to Hinata, so he scares Sasuke to make him back off.
Some fanfic authors might write it as a form of wish - fulfillment. They might prefer the Naruto - Sakura relationship more than the Sasuke - Sakura one. So, they create a scenario where Sakura turns to Naruto in a romantic way. Additionally, it could be a way to explore the characters' personalities further. For example, how Sasuke would handle being betrayed and how Naruto would deal with being involved in such a situation. It gives a chance to dig deeper into their emotional and moral aspects.
In such a fanfic, one possible reason could be Naruto's feeling of being left out. Maybe he sees Sakura's constant focus on Sasuke and feels neglected in their friendship triangle. Another reason might be jealousy. If Naruto has unrequited feelings for Sakura, seeing her love for Sasuke could turn to hatred over time.
One reason could be Sasuke's thirst for power. If he believes Naruto is the only obstacle in his path to ultimate power, he might be driven to kill him. In some fanfictions, Sasuke may be influenced by a dark entity that twists his mind into thinking Naruto is a threat that needs to be eliminated.