It could also be that Dumbledore has some sort of hidden agenda related to Harry's destiny. He might think that stealing certain things from Harry is necessary to shape Harry into the person he needs to be to defeat Voldemort. He could be taking items that he believes will lead Harry on a certain path or force him to develop certain skills.
One possible reason could be that Dumbledore believes he is acting in Harry's greater good. Maybe he thinks that by taking certain items from Harry, he can protect them from falling into the wrong hands. For example, if Harry has a powerful magical artifact that Voldemort desires, Dumbledore might steal it to keep it safe.
One possible reason could be that Harry has discovered something about himself or his past that he thinks Dumbledore might not approve of or might try to stop him from exploring further. For example, if he found out some dark magic connection in his family history that he wants to understand on his own without Dumbledore interfering.
It could be that Harry finds out about Dumbledore's secrets regarding the Deathly Hallows. If Harry thinks Dumbledore was more interested in the Hallows for his own purposes rather than for the greater good, it might make him hate Dumbledore.
One reason could be fear. Maybe Harry discovers something about Dumbledore in the fanfiction that makes him scared, like a hidden agenda. Another reason might be to protect Dumbledore. Harry could think that by hiding from him, he is keeping Dumbledore away from some sort of danger that is related to Harry himself. Also, it could be due to a misunderstanding. Harry might misinterpret something Dumbledore does or says, and as a result, decides to hide from him.
Perhaps there are safety concerns for the students that Dumbledore is not addressing adequately. Harry, having a strong sense of responsibility for his fellow students, may feel that the only way to ensure their safety is to remove Dumbledore from his position. He might believe that Dumbledore's actions or inactions are putting the students at risk, and thus he takes matters into his own hands.
Well, it could be that Harry has a different view on how to handle the war against Voldemort. Dumbledore is often very strategic and sometimes keeps things from Harry for what he believes is the greater good. But Harry might think that full transparency is necessary. Also, Harry may have formed new alliances or friendships that give him different perspectives, and these new ideas conflict with Dumbledore's. He might feel that Dumbledore's approach is too old - fashioned or risky in a new context.
One possible motive could be a misguided sense of protection. Dumbledore might think that taking something from Harry, like a powerful magical item, would keep it out of the wrong hands. He may believe that Harry is too young or inexperienced to handle it properly.
Perhaps in the fanfic, Harry discovers that Dumbledore has been manipulating him all along. Dumbledore has always been a very complex character with many secrets. If Harry were to find out that Dumbledore was using him as a pawn in a much larger and dangerous game, his anger could lead him to punch Dumbledore. This would completely change the dynamic between them and open up a whole new set of storylines and character developments.
In a fanfiction, Dumbledore might steal out of desperation. Suppose there was a situation where a curse was about to be unleashed on Hogwarts, and the only way to stop it was by stealing a particular ingredient for an antidote from a place where it was not supposed to be taken. Dumbledore, seeing no other option, decides to steal it. His motive here is to save the school and its students, even if it means breaking the rules.
One possible reason could be a misunderstanding. Maybe Harry overheard something that made him think Dumbledore was planning something against him that he didn't understand. For example, if he heard Dumbledore discussing a dangerous mission for him without his full knowledge.
Perhaps Dumbledore foresaw some sort of prophecy that was related to Harry and his parents. In order to fulfill the prophecy in the right way or to avoid a greater catastrophe, he kept Harry from his parents. He was always thinking about the greater good of the wizarding world and might have believed this was a necessary step.