What does "I thought you'd never ask" mean?

In a tv show it was something like
Character a: so we need a new teacher substitute
Character b: I thought you'd never ask

And my friends laughed.
What does it mean? And why was it funny?
6 answers 6