Roughly seven millenia ago, people on the Eurasian steppes used the word peyk as a blanket noun to cover all kinds of noisy birds. One of the eventual derivatives of this word was the Latin term pica, which described the bird we now know as a magpie. This word took a step towards its current state when it became French pie, then English pie. Later, people added a nickname for Margaret, Mag, to the front of pie to create magpie. This happened because Margaret was colloquially considered to be the name of a talkative female chatterbox, and the bird chirps a lot, so the connection happened, odd as it is. Now let's go back for a moment to the Latin word pica, also "magpie". Since magpies eat whatever they can find, including rubbish, pica later got adopted as a scientific term for a disorder where one eats nonedibles. This habit of eating jumbled things also brought about the definition for the edible pie, because early pies were cooked with a myriad of jumbled meats beneath the crust. SO MANY CONNECTIONS. Now, appreciate the irony that pie comes from PIE.
Adam Aleksic, a freshman studying linguistics at Harvard University, has been described as the internet's sixth most famous etymologist. He has disturbing interests in words, vexillology, geography, board games, limericks, and law, and he loves writing about himself in the third person.
The Etymology Nerd