Some authors might create it as an exercise in 'what - if' scenarios. They want to break the established narrative and see how different characters would react if Harry was killed so early. Also, it could be a way to explore the Dursleys' characters more deeply, showing just how far their hatred for Harry could go.
Perhaps it's a form of creative rebellion. The original story has a set path, and by creating a fanfiction where the Dursleys kill Harry, the author is challenging the norms of the 'Harry Potter' universe. It could also be a way to attract attention, as such a radical departure from the original plot is likely to stand out among other fanfictions.
Well, it could be that he has lost all hope. In the fanfiction world, if the situation becomes so dire that he sees no way out for himself or the people he loves. For example, if Voldemort manages to gain complete control and Harry Potter thinks his sacrifice by taking his own life might be the ultimate solution to break Voldemort's power. He might also be suffering from post - traumatic stress after all the battles and losses, leading him to this extreme decision.
One reason could be that he discovers a new threat and decides he can't stay with the Dursleys any longer for their safety. Another might be that he simply can't bear their mistreatment anymore and finds an opportunity to escape.
Perhaps he gets a chance to attend a special magical school or training program that requires him to leave the Dursleys. It could be a place where he can develop his powers without the Dursleys' interference. Also, he may be running away from a threat that the Dursleys are unable or unwilling to protect him from.
I haven't actually come across a 'Dursleys kills Harry Potter' fanfiction. It's a rather disturbing concept considering how the story of Harry Potter is centered around his survival against Voldemort. The Dursleys are just part of his Muggle upbringing with their own brand of meanness. If there were such a fanfiction, it would probably change the whole trajectory of the story. For example, the wizarding world would lose its Boy Who Lived, and it would be interesting to see how the characters like Dumbledore or Hermione would react to such a tragic event.
There are likely 'Harry Potter Kills Dursleys' fanfictions. Fanfic writers often like to explore extreme scenarios. In this case, it could be a way to show how far Harry could be pushed. It might also be a commentary on the Dursleys' horrible treatment of Harry. But this goes against the somewhat forgiving nature of Harry in the original books.
Well, the Dursleys were extremely cruel to Harry. They locked him in his cupboard under the stairs for a long time. They also tried to prevent him from knowing about his magical heritage, which was a big part of who he was. Harry must have felt a great deal of resentment towards them for suppressing his true self.
Maybe the creator wants to explore a different side of Pikachu's character. In the official story, Pikachu is loyal and friendly, but in this fanfiction, it could be a way to show a corrupted or influenced Pikachu. Also, it could be a way to deconstruct the typical hero - sidekick dynamic between Ash and Pikachu and make readers think about their relationship in a new way.
One reason could be that the creators of such fanfiction are die - hard Snape fans. They might feel that Snape is the most interesting and underappreciated character in the 'Harry Potter' series. So, they create fanfiction where Harry Potter, who they may see as getting too much attention in the original, is not as great, to put more focus on Snape.
One possible reason could be extreme despair. Maybe in that fanfic's alternate universe, Harry has lost all his friends and loved ones in a very tragic way, like a second wizarding war that was far more brutal and unforgiving. He might see no way out of the emotional pain and thus choose to end his own life.
Well, if we consider this in the context of fanfiction, it might be a very extreme exploration of the 'dark!Harry' trope. However, it goes against everything Harry represents in the original series. Firstly, the Dursleys, despite their mistreatment of Harry, are Muggles and killing and eating them is an inhumane act. This would cause a huge uproar in both the Muggle and wizarding worlds. Harry would be seen as a monster.