I don't think this is true. Comedy is often times leading you down a somewhat obvious train of thought and then surprisingly diverting in a completely unexpected direction.

It's not that everyone in the audience knew exactly what the comedian was going to say, it's that the comedian made them think something and then surprised them with something funny or offensive that's completely different.