It's more than that - it's a traditional way to break the awkward silence when someone belches or farts at an inappropriate moment.
It comes from genteel 'aga saga' books about English country living. It's literally an invitation to the local churchman to refill his teacup, but there's an undercurrent of false gentility and sweet smiling with malice in the heart.