In this context, "that" is used for emphasis. It's kind of like saying, 'Wow! *That* was a ____, wasn't it?' We use these kinds of sentences a lot, but mostly in spoken English. It's harder to recognize the meaning when you don't hear someone say it. It's a very common way of expressing our feelings about something that we think is amazing, crazy, horrible, or surprising.