One reason could be that she feels disillusioned with the wizarding world's politics. After all the wars and power struggles, she might just want a simple, Muggle life away from all the chaos.
Perhaps she has some sort of falling out with her friends. Maybe an argument with Harry and Ron over some fundamental differences in how they view the future of the wizarding world makes her decide to leave.
In certain fanfiction scenarios, Harry could leave the wizarding world to explore other magical realms or non - magical places. He may feel that his growth and understanding of magic and life are restricted within the wizarding world he knows. Maybe he meets a group of people from outside the wizarding world who offer him a new perspective and a chance at a different kind of life.
Perhaps he leaves in search of a more peaceful life. The wizarding world, despite its magic, has been filled with turmoil for him. He could be seeking a place where he can simply be Harry, not 'The Boy Who Lived' or the hero who defeated Voldemort. He may also be on a quest to discover more about his family's past in the Muggle world, something that has been somewhat overlooked in his life in the wizarding world.
In some cases, he could be leaving in search of a greater purpose. He might feel that there are things he can learn or achieve outside the wizarding world that will ultimately help the wizarding community more. He may also leave because of some prophetic vision or a feeling that he doesn't belong there anymore, that his path lies elsewhere, away from the familiar magical realm he grew up in.
However, there could also be those who are glad she's leaving. Some pure - blood supremacists might see her as a threat to their traditional views. They might think that with her gone, they can push their archaic ideas more freely in the wizarding world.
One reason could be ideological differences. Maybe she discovers that the Order's methods don't align with her own sense of justice. For example, if the Order starts to use unethical magic in their fight against the Dark forces, Hermione, with her strong moral compass, would not stand for it.
One reason could be to escape the trauma of the war. They've been through so much in England, and leaving gives them a chance to heal in a new environment.
Perhaps he feels betrayed by the wizarding world. Maybe some of his friends turned on him or the institutions he trusted failed him. For example, if the Ministry of Magic wrongly accused him again, it could push him to abandon it all. He may also be haunted by the many deaths he witnessed and feels that leaving is the only way to escape the painful memories.
One reason could be that he's tired of the constant danger and battles. After all he's been through, he might just want a normal, peaceful life away from magic. Maybe he wants to start a family in the Muggle world where his kids can grow up without the threat of dark wizards.
One reason could be to escape the danger and dark forces that still lurk in England even after the main battle. They might feel that leaving is the only way to start anew and be truly safe. Maybe they want to explore other magical cultures around the world and learn more about magic that is different from what they've known in England.
Well, perhaps in the fanfiction they leave because of a prophecy. A prophecy might state that their presence near Hermione would bring great danger to her or to the wizarding world as a whole. So, they sacrifice their friendship and leave. Also, it could be due to some dark magic influence. They are forced by a powerful dark magic spell to stay away from Hermione, not having control over their actions.