Loki wasn’t Loki until he was Loki. Same with Thanos, really. The vast majority of people going to see the Avengers didn’t know who that guy was at the end of the movie. The amount of people who know these villains from the comics is fairly small. They can make it work by presenting him as a threat, though as you note…