Well, in some fanfics, Voldemort might have his Death Eaters spying on the Dursleys. So they could've reported Harry's location to him. Another possibility is that Voldemort has some sort of dark magic tracking device on Harry that led him there.
In some fanfics, this could happen due to a different take on Voldemort's character. Maybe the author wants to explore a redemption arc for Voldemort. He might see something in Harry that makes him change his mind about killing him and instead decides to rescue him from Vernon's bad treatment. It could also be part of a complex plot where Voldemort has ulterior motives that initially seem like a rescue but are actually part of a bigger scheme.
One motive could be that Voldemort wants Harry on his side. He might think that by rescuing Harry from Vernon, who was clearly a bad caretaker, Harry would be more inclined to listen to him and join him.
One scenario could be that Voldemort has a change of heart. He might have had a vision or a revelation that made him realize that Harry is more valuable alive and not under the cruel treatment of Vernon. Another scenario is that Voldemort wants to manipulate Harry. By rescuing him from Vernon, he can start to build a relationship with Harry based on gratitude. This way, he can later persuade Harry to join his side or use Harry's power for his own purposes.
Maybe Dumbledore steps in at the last moment and takes Harry away from Vernon's house. He could use his powerful magic to protect Harry and remove him from that hostile environment.
It could be Sirius Black. Sirius is Harry's godfather and he is very protective of Harry. He might break out of his confinement (if he is still in that situation in the fan fiction) and rush to Vernon's house. Sirius has the skills and the determination to face Vernon and save Harry. He could transform into his Animagus form, a large black dog, and intimidate Vernon into letting Harry go.
Perhaps Dudley finally stands up to his father's cruel treatment of Harry. Maybe he realizes that Vernon's behavior towards Harry is wrong and uses his own physical strength or some clever ruse to get Harry out of a difficult situation Vernon has put him in.
The plot twist could be related to Snape's true motives. He might be under an Unbreakable Vow to rescue Harry from the Dursleys. In the process, Harry realizes that Snape is not as bad as he seems. This could lead to a complete change in their relationship. Harry could start to trust Snape, and Snape, in turn, could teach Harry some unique magic that he has never learned before, which is crucial for the upcoming battle against Voldemort.