One reason could be that they see Loki as a victim of circumstances. Maybe they've come to understand that his actions were often influenced by forces beyond his control, like Thanos' manipulations. So they decide to defend him in Asgard.
Maybe Loki is wrongly accused of a crime in Asgard. The Avengers, having had their own experiences with false accusations, step in to defend him. They believe in justice and know that Loki might not be guilty.
One possible reason could be his feeling of being an outcast. In the original stories, Loki is often treated differently in Asgard due to his nature. He might have felt like he didn't truly belong, which could fuel his hatred. Another reason could be envy. Maybe he saw others in Asgard having things he desired, like power or recognition, and his envy turned into hatred.
He could meet the Frost Giants. Since he has some connection to them already, they might welcome him or at least be intrigued by his presence. He could learn more about his heritage from them and maybe even form an alliance.
One common theme is redemption. Loki is often seen as a character who has made mistakes, and in these fanfictions, Asgard's protection of him is part of his journey towards redemption. For example, Thor's unwavering support helps Loki to face his past actions and strive to be better.
One possible plot could be Loki leaving Asgard after feeling constantly overshadowed by Thor. He might leave in search of a place where his skills and intelligence are truly valued, perhaps finding a hidden realm where he can start anew and build his own following without the judgment of the Asgardian court.
I also like 'Asgard's Love for Loki'. In this fanfiction, Odin, despite his past mistakes regarding Loki, decides to be more protective. He uses his power and influence to shield Loki from external threats and also tries to mend their broken relationship. It's an interesting take on how Asgard can step up to protect one of its own who has often been seen as an outcast.
In the fanfiction, Loki discovers he is pregnant just as the plans to build new Asgard are underway. He is initially worried about how the Asgardians will react. Thor, being his brother, stands by his side and assures him that new Asgard will be a place of acceptance. As Loki's pregnancy progresses, he uses his magic to help in the construction, creating beautiful illusions that inspire the builders. In the end, when the new Asgard is complete, Loki gives birth to a child who is seen as a new hope for the future of Asgard.
In fanfiction, if the Avengers go to Asgard, there could be a big clash at first. The Asgardians are proud warriors and the Avengers have their own ways. But then they might team up to face a common threat. For example, a powerful dark magic user could be targeting both Earth and Asgard. The Avengers with their diverse skills and the Asgardians with their magic and strength could form an unbeatable alliance.
It could potentially make his relationships more complex. Some might view him with suspicion, thinking he has ulterior motives for being an Odin fan. Others might try to use this knowledge to their advantage, perhaps to manipulate Loki or gain favor with Odin.