Koko had recently shown a great interest in the trap door, and to try to convince Koko there's no reason to go down, Qwilleran closes the door behind him, and goes to lunch.
Qwilleran attempted to discourage Koko's interest in the trap door by closing the door behind him and going for lunch.