You could always rewatch it, and things might make more sense, but if it doesn't or you just want an explanation:
Spoilers
There's actually quite a bit more to it than that, but that's the gist of it. That's why people love it.