The first example is a case of a noun functioning to modify another noun. This is technically known as an attributive noun. Almost any noun may be used in this way, nor is this a new feature of English grammar. It is, however, becoming more common in recent decades.
Some nouns are more frequently used as attributive nouns, and those are marked as attrib in some dictionaries.
Sometimes an attributive noun uses the genitive form, so that it looks like a possessive. For example:
Such a state is often kn own as a "people's republic."
Here "people" is used as an attributive noun, not a possessive. If one can rephrase the sentence with "for" or "of" after the apparently possessive noun, it may well be in fact an attributive. The line between and attributive and a possessive is fuzzy, and grammarians may disagree on particular cases. It also does not matter much for usage or meaning.
An attributive nouns always occurs imm ediantly6 before the noun being modified, except that when several nouns occur one after the other, each serving as a modifier, in some cases it might be that all nound modify the last one. Such a string is sometimes called a noun cluster.
For example in the noun cluster
fallout survival shelter
each noun modifies the one right after it. But in the cluster:
adult Springer spaniel
both "adult" and "Springer" modify "spaniel".
See "Attributive Nouns in Grammar" from Thought Co for more on this, as well as various sources mentioned in comments.
The Thought Co page states:
Home, for example, may function as a noun ('This is our home'), as an adjective ('Taste our home cooking'), or as an adverb ('We went home'). Because nouns may function as adjectives (the technical term for a noun that modifies a subsequent noun is attributive noun), 'government offices' is as correct as—and many would say preferable to—'governmental offices.'