Thinking that this would be the series finale, creator Joss Whedon wrote the scene in the alley at the beginning, for old time's sake.
When Buffy ask Giles how many apocalypses they've been through, he replies "At least six, but it feels like a hundred." Depending on what you consider an apocalypse, this is correct. That it 'feels like a hundred' is a fun nod to the fact that this was the hundredth show.
This is the 100th show of the series.
As mentioned by Joss Whedon in the DVD commentaries for both this episode and Chosen (2003), this episode was originally written to serve as the series finale, and several ideas that were used in the real finale were originally written for this episode.
When Buffy asks Giles how many apocalypses they've been through, he replies "at least six"; indeed, they've averted apocalypses in Prophecy Girl (1997), Becoming: Part 2 (1998), The Zeppo (1999), Graduation Day: Part 2 (1999), Doomed (2000), and Primeval (2000).