If you compliment someone behind their back, the listener respects your loyalty. If you gossip about someone behind their back, the listener starts wondering if you'll do the same once their back is turned.