If a waiter/waitress does a good job they will be more likely to get a better tip. If a waiter/waitress does a bad job they will get smaller / no tip.
Now, they will not necessarily get a bigger tip or even necessarily get a tip if they do a wonderful job, but it does make some people.