The major I for the third chord is the really key piece of that chord progression. Shifting up and down chords by step is pretty common in pop music, but shifting into major I the first time then the flat 9 dominant the second time (especially with the natural 7 right before it!) is a powerful harmonic one-two punch.
I don't want to be 'that guy', but the other guy responding to you has it totally wrong. Try to plunk out chords on the piano with the music and see for yourself.