Another interpretation: What is written above? "And the LORD God made garments of skin and clothed them" (Genesis 3:21). This teaches that the Holy One, blessed be He, made for him priestly garments, in the manner of what is said (Ezekiel 9:11), "And behold, the man clothed in linen," and it is written, "He shall put on the holy linen tunic" (Leviticus 16:4). From here you learn that the High Priest resembles an angel, "for he is a messenger [angel] of the LORD of hosts" (Malachi 2:7). To what may the matter be compared? To a king who saw a certain commoner and dressed him like the members of the palace court. The members of the court said to the king: Even that one who is a commoner is now like us. So too the angels said before the Holy One, blessed be He: Even Adam, who is a creature of dust, behold he is like us - "Behold, the man has become like one of us." To a king who loved his servant and made him a golden necklace; when the servant transgressed, he took it from him and put chains upon him. So the Holy One, blessed be He, made for Adam priestly garments, and when he sinned He removed them from him, as it is said (Genesis 3:7), "And they sewed fig leaves."
Adam Clothed as a Priest and Stripped After His Sin
Yalkut Shimoni on Torah 34:4
דָּבָר אַחֵר, מַה כְּתִיב לְמַעְלָה "וַיַּעַשׁ ה' אֱלֹהִים כָּתְנוֹת עוֹר וַיַּלְבִּישֵׁם", מְלַמֵּד שֶׁעָשָׂה לוֹ הַקָּדוֹשׁ בָּרוּךְ הוּא בִּגְדֵי כְּהֻנָּה כְּעִנְיַן שֶׁנֶּאֱמַר (יחזקאל ט, יא) "וְהִנֵּה [הָ]אִישׁ לְבֻשׁ הַבַּדִּים", וּכְתִיב "כְּתֹנֶת בַּד קֹדֶשׁ יִלְבָּשׁ" מִכָּאן אַתָּה לָמֵד שֶׁכֹּהֵן גָּדוֹל דּוֹמֶה לְמַלְאַךְ, (מלאכי ב, ז) "כִּי מַלְאַךְ ה' צְבָאוֹת הוּא" לְמָה הַדָּבָר דּוֹמֶה, לְמֶלֶךְ שֶׁרָאָה קַרְתִּי אֶחָד, וְהִלְבִּישׁוֹ כִּבְנֵי פְּלָטִין, אָמְרוּ בְּנֵי פְּלָטִין לַמֶּלֶךְ, אֲפִלּוּ אוֹתוֹ שֶׁהוּא קַרְתְּנִי הוּא כָּמוֹנוּ. כָּךְ אָמְרוּ הַמַּלְאָכִים לִפְנֵי הַקָּדוֹשׁ בָּרוּךְ הוּא, אֲפִלּוּ אָדָם שֶׁהוּא יְצִיר עָפָר הֲרֵי הוּא כָּמוֹנוּ. הֵן הָאָדָם הָיָה כְּאַחַד מִמֶּנּוּ. לְמֶלֶךְ שֶׁחִבֵּב עַבְדּוֹ וְעָשָׂה לוֹ מוּנְיָק שֶׁל זָהָב, סָרַח, נְטָלוֹ מִמֶּנּוּ וְנָתַן עָלָיו כְּבָלִין כָּךְ עָשָׂה לוֹ הַקָּדוֹשׁ בָּרוּךְ הוּא בִּגְדֵי כְּהֻנָּה, וּכְשֶׁחָטָא הֶעֱבִירוֹ מִמֶּנּוּ, שֶׁנֶּאֱמַר (בראשית ג, ז) "וַיִּתְפְּרוּ עֲלֵה תְּאֵנָה".