The etymology of the word is unknown, but may be related to the magpie (also called "pie"), perhaps because both were spotted, or because the bird collects miscellaneous articles, and almost anything can be wrapped in pastry and cooked.
The origin of the word is unknown, but it may be linked to the magpie (also known as "pie"), possibly because both were observed, or due to the bird's habit of gathering miscellaneous items and wrapping them in pastry before cooking.