What does it mean when someone says “losing you is his or her gain”?

Friendship or relationship wise meaning

What does it mean when someone says “losing you is his or her gain”?
Post Opinion