In certain fanfics, it could be part of a disciplinary system in Hogwarts that has gone awry. The writers might depict a Hogwarts that is more of a strict military - like academy where physical punishment is allowed in extreme cases, and Snape, as a strict teacher, takes it too far. They then use this as a starting point to explore themes of reform in the wizarding school system.
Writers often justify their relationship by highlighting their common traits. For example, both are highly intelligent. Hermione is known for her academic prowess and Snape is a master of potions and dark arts knowledge. This shared intelligence can be a basis for mutual attraction. They also both have a sense of loyalty, though it shows in different ways. Hermione to her friends and Snape in his own complex way to Dumbledore and Hogwarts.
A possible justification could be a deep exploration of Harry's post - traumatic stress. Writers might think that after years of fighting and losing so many people, Harry could reach a breaking point. But really, the Harry Potter we know from the books has a strong will and a support system that should prevent such a tragic end. So, these justifications seem more like attempts to create shock value rather than staying true to the character's nature.
Some writers justify it by exploring a deep emotional connection. Maybe Draco has been protecting Harry in the fic, and Harry starts to see him as a paternal figure. For example, if Draco saves Harry from a great danger multiple times, Harry might develop a sense of dependence and respect that could lead to this. Another way is through a magical bond. If there's a spell or a magical accident that links them in a way that Harry feels a child - like connection to Draco, it can be used as a justification.
Some writers might justify it by exploring the idea of redemption. They could write Voldemort in a way that shows a glimmer of humanity that Harry, being abused, might be able to relate to on some level. Maybe Voldemort has a hidden past that makes him more complex than just the evil wizard we know.
They could also use the idea of being influenced by dark powers. Maybe Naruto comes into contact with a powerful and malevolent force that slowly corrupts him, making him do things that are out of character for the original Naruto. This gives the writer a way to explore a different side of the character while still having a somewhat believable reason for his actions.
Some writers justify it by saying that Harry is a descendant of a powerful ancient magical line that was long forgotten. This hidden heritage unlocks his godlike powers as he grows older and discovers more about his past. For example, he might find out that his ancestors made a pact with some powerful magical beings, and the powers are now passed down to him.
One reason could be to explore complex character dynamics. In the original 'Harry Potter' series, Snape has a very ambivalent relationship with Harry. By writing about Snape rejecting Harry in fanfic, writers can dig deeper into Snape's internal conflict. He has his own grudges and loyalties, and this rejection could be a way to show how his past and his own sense of self prevent him from fully accepting Harry.
Some writers use the idea of a common enemy. If there is a powerful foe that threatens both Artemis and Percy's worlds, they are forced to team up. During this cooperation, they discover new sides of each other. Percy might show his loyalty and courage in a way that makes Artemis fall for him, and thus the relationship is justified.
Writers often justify their relationship by showing character growth. For example, Draco might have realized the error of his ways after the war and Hermione, being the empathetic person she is, starts to see the good in him. This gradual change in their personalities makes their relationship seem more plausible.
One possible plotline could be that it's all a misunderstanding. Maybe Snape was under the influence of a dark spell that made him act out of character and hit Harry. Then the story could revolve around Harry trying to find a way to reverse the spell and save Snape from further disgrace.