A few years back, somebody at Marvel had an idea:
"Let's make an Avengers movie!"
"But wait," someone inevitably said, "won't all those superheroes be confusing as hell for anyone unfamiliar with The Avengers?"
"Alright, we'll make some origin movies, then The Avengers!"
And so they did. And that's what Thor is. Prep work.