Someone told this to me long, long ago. Once in day Saraswati, the goddess of learning sits on your tongue. One doesn't know exactly when; she does so randomly. And at that instant whatever you say comes true. So you should always say good things ... you never know what comes true.
I have not yet found a better logic(?) than this to promote politeness and decency among humans.