The idiom thrown for a loop most likely derives from boxing and the image of someone knocked head over heels. This is part of a complete episode.