Why turkey has the same name as Turkey
"pastry," mid-14c. (probably older; piehus "bakery" is attested from late 12c.), from Medieval Latin pie "meat or fish enclosed in pastry" (c.1300), perhaps related to Medieval Latin pia "pie, pastry," also possibly connected with pica "magpie" (see pie (n.2)) on notion of the bird's habit of collecting miscellaneous objects. Figurative of "something to be shared out" by 1967.
According to OED, not known outside English, except Gaelic pighe, which is from English. In the Middle Ages, a pie had many ingredients, a pastry but one. Fruit pies began to appear c.1600. Figurative sense of "something easy" is from 1889. Pie-eyed "drunk" is from 1904. Phrase pie in the sky is 1911, from Joe Hill's Wobbly parody of hymns. Pieman is not attested earlier than the nursery rhyme "Simple Simon" (c.1820). Pie chart is from 1922.
"magpie," mid-13c. (late 12c. as a surname), from Old French pie (13c.), from Latin pica "magpie" (see magpie). In 16c., a wily pie was a "cunning person."
dish made by lining a shallow container with pastry and filling the container with a sweet or savoury mixture. A top crust may be added; the pie is baked until the crust is crisp and the filling is cooked through. Pies have been popular in the United States since colonial times, so much so that apple pie has become symbolic of traditional American home cooking. The typical American pie is round, 8-10 inches (20-25 cm) in diameter, 2-3 inches (5-8 cm) thick, and usually contains a sweet filling of fruit, custard, or a pastry cream. Some American specialties are pecan pie, pumpkin custard pie (traditionally served on Thanksgiving Day), lemon pie with a soft meringue topping, and shoofly pie, a Pennsylvania Dutch (see Pennsylvania German) pie with a rich filling containing molasses.