Because the comedian will be testing out new jokes that will often push boundaries.
Say he tells a joke about race. If he gets a bad reaction from the small crowd then he just won't use the joke again or rework it. He moves onto the next joke in the set.
If somebody is recording the show then that offensive joke will get put onto youtube and the headlines will be "XYZ tells racist joke".