Torah Temimah cites Shevuos 6b.
And the reasoning is: since the Torah warned and punished regarding tumah, and obligated a korban regarding tumah — just as when it warned and punished regarding tumah it was only for tumas Mikdash and kodashim…
The parallel between the warning/punishment and the korban obligation keeps both within the same tumas Mikdash and kodashim scope.
Category D — Conceptual / legal inference
Method — The Gemara reasons from the established scope of the Torah’s warning and punishment for impurity to the scope of the korban obligation: just as that warning and punishment apply only to tumas Mikdash and kodashim, so too this offering applies only to those cases.
Textual trigger — “מַה כְּשֶׁהִזְהִיר וְעָנַשׁ … לֹא הִזְהִיר וְעָנַשׁ אֶלָּא עַל טוּמְאַת מִקְדָּשׁ וְקָדָשָׁיו, אַף כְּשֶׁחִיֵּיב קָרְבָּן …” (Shevuos 6b).