The joke is a pun on the word 'stalling'.  'Stalling' can mean drawing out extra time before doing something.  Public bathrooms or wash rooms have stalls for privacy, so 'stalling' could potentially mean being in a stall.
My student was late for class , claiming he was in the washroom . I think he was stalling .