Expressing surprise or disbelief.
That's a funny joke (often said to indicate that what has just been said is laughably unbelievable.)