Etymology
Today it means: A party or other celebration held in honour of someone leaving their job. Full definition →
From leaving + do ("party").
Etymology from Wiktionary, CC BY-SA 4.0.