Vayikra / Leviticus 21:1 · Drash
וַיֹּאמֶר יְהוָה אֶל־מֹשֶׁה אֱמֹר אֶל־הַכֹּהֲנִים בְּנֵי אַהֲרֹן וְאָמַרְתָּ אֲלֵהֶם לְנֶפֶשׁ לֹא־יִטַּמָּא בְּעַמָּיו׃
And the Eternal said to Moshe (Moses): "Say to the kohanim, the sons of Aharon (Aaron), and say to them: None shall make himself impure for a dead person among his people,
Drash דְּרָשׁ
The king's cook
If you come in to an important person every day, you watch yourself differently. Not because you were told to, but because you come in to him.
Midrash Tanchuma: everything the Almighty warns Israel about is for the sake of their holiness and purity. A parable explains the double "say": a king told his cook, who comes in to him every day, never to look at a dead person, so as not to make the palace impure. So too the kohanim, who enter the Temple.
How Midrash Tanchuma explain it
Midrash Tanchuma Say to the kohanim
Of this it says: "The words of the Eternal are pure words" (Tehillim / Psalms 12:7). Everything that the Holy One, blessed is He, warns Israel about is for the sake of their holiness and purity. So: "the words of the Eternal are pure words".
Another explanation. "Say to the kohanim" and "say to them": here "say" comes twice. What is this like? Like a cook who would go in and out before the king. The king said: "I decree upon you: never in your life look at a dead person, because you go in and out and see my face, so that you do not make my palace impure."
So the Holy One, blessed is He, decreed that the kohanim who enter the Temple shall not make themselves impure for the dead. Therefore it says: "None shall make himself impure for a dead person among his people."
Takeaway
The word טַבָּח means both "butcher" and "cook": the one who prepares meat for the king's table.
Mei HaShiloach brings the same parable and sees in the cook the one who prepares joy for the king (Mei HaShiloach, Emor 2).
The word for "palace" here is פַּלְטְרִין: so the midrash calls a royal palace.