Torah Temimah cites Shevuos 7a.
It was taught, Rabbi says: I could read “chayah”; why was “beheimah” said? It is said here “unclean animal” and said there “unclean animal” — just as there it is tumas kodesh, so here it is tumas kodesh.
The gezeirah shavah links the neveilah-contact of this verse to the tumas Mikdash / kodashim framework rather than treating it as a free-standing liability.
Category A — Formal traditional Middah
Traditional list — Rabbi Yishmael’s 13 Middos.
Middah #2 — Gezeirah Shavah.
Textual application — The phrase “בְּהֵמָה טְמֵאָה” links the carcass-contact passage here to the parallel passage concerning one who eats consecrated meat while impure. The shared wording identifies the relevant category here as tumas kodesh.
Parallel texts — Leviticus 5:2, “אוֹ בְּנִבְלַת בְּהֵמָה טְמֵאָה”; Leviticus 7:21, “אוֹ בְּבְהֵמָה טְמֵאָה.” Shared phrase: “בְּהֵמָה טְמֵאָה.”
Shevuos 7a explicitly states “נֶאֱמַר כָּאן … וְנֶאֱמַר לְהַלָּן” and applies the Gezeirah Shavah.