Laughter is contagious, so if an audience at home hear a studio audience laughing then there's more of a chance they'll laugh themselves. Of course, a good show will make the viewers laugh anyway, so generally it's only bad shows that need laugh tracks.