Question: why loki is a hero?
Answer: In Avengers: Infinity War, he was a hero. Although, he tried to hurt his brother through Thanos, he also tried to kill Thanos himself. ... So Loki was a character in the MCU who evolved from a villain to a hero. He deserved to die because that's what made him a true hero.