It's supposed to be a pun of when the girl asks, "Nankai desuka?" which could mean,
何回ですか? (How many times?), or
何階ですか? (Which floor?)
In which she answers,
3回 (3 times), or, 3階 (The third floor).
So, they end up doing "something" three times, until the third floor.