In some fanfiction, it could be because of the villagers' superstitious beliefs. Since Naruto had the Nine - Tails within him, they considered him an 'evil omen'. They were so afraid that they locked him away. Additionally, there might be a group of elders who thought Naruto's presence would disrupt the traditional order of the village and decided to isolate him.
Maybe in the fanfiction, there were dark forces within the village that saw Naruto as a threat to their power. By locking him away as a child, they could control the narrative and keep their secrets safe. Also, it could be due to some sort of prophecy that was misinterpreted. People thought Naruto would bring destruction, so they locked him up to try and avoid it.
One reason could be that some in the village feared his potential as the Jinchuriki of the Nine - Tails. They might have thought locking him away would prevent him from causing chaos. Another reason could be related to those who still held grudges against the Fourth Hokage for sealing the Nine - Tails in Naruto. They took it out on Naruto by imprisoning him.
It could also be due to a particularly bad encounter with someone in the village. For instance, if he was bullied severely by some older kids and he felt that there was no one to protect him. He might have thought that running away was his only option to avoid further harm.
One possible reason could be for Naruto's protection. His father might think that by locking him away, he can keep Naruto safe from the many threats in the Naruto world, like powerful enemies who might target Naruto for his special powers.
Well, in this fanfiction, it could be that Naruto is locked away by a powerful enemy of the village who wants to use him as a weapon later. Maybe Orochimaru gets his hands on Naruto as a baby and locks him in one of his secret labs. There, Naruto endures all kinds of experiments and hardships. But through his natural tenacity, he starts to develop unique abilities that are a combination of his jinchuriki powers and Orochimaru's experiments. Eventually, he escapes and has to decide whether to use his new powers for good or for revenge against the village that failed to protect him.
It could be the village council. They often make decisions for the safety of the village, and if they perceive Naruto as a threat, they might be the ones to lock him away.
It could be due to some sort of trauma. Maybe he witnessed something really bad that made him retreat into himself and become quiet. For example, if he saw someone he cared about get hurt badly, it could have silenced him as a form of self - protection.
Perhaps he is lured away by an unknown force. In some fanfictions, there might be a mysterious character or group that tricks Naruto into leaving Konoha. They could make false promises about his parents or his true power, making him curious enough to follow them.
In this fanfiction, it's possible that Naruto is locked away as a result of a misunderstanding. His powers might be seen as uncontrollable by some in the village. They fear what he could do accidentally with his strength, so they lock him away in an attempt to keep the village safe. However, Naruto being Naruto, he would surely find a way to prove his innocence or break free in the end.
One possible reason could be fear. Minato is a very powerful shinobi, and Naruto might be scared of him for some reason. Maybe he has heard stories about Minato that made him afraid.
In fanfictions, Naruto could run away from his family due to emotional abuse. If his family members constantly put him down, criticize his abilities, or make him feel unworthy, he'd likely want to escape. Also, if his family is involved in some political intrigue that he doesn't want to be dragged into. For instance, they might be making deals with other clans that Naruto disagrees with. Additionally, if there is a new family member introduced, like a step - sibling who is favored over him and he feels unloved, that could prompt him to run away.
One possible reason could be the author's desire to create a more complex and controversial story. By making Naruto an illegitimate child, it adds a whole new layer of drama and mystery to his character.