The reason they do what they do is so when the smoke goes up to all the gods (most Chinese people believe in many gods), the kitchen gods can tell all the gods that you behaved.