What Martin Freeman was doing in that bit was the exact same thing that the character David is — Martin was being a terrible person. It's why it was funny. It was a joke because he took the absurd stance and made himself out to be an obviously terrible individual.