We write the "noun as adjective" and the real noun in several different ways:
two separate words (car door)
two hyphenated words (book-case)
one word (bathroom)
There are no easy rules for this. We even write some combinations in two or all three different ways: (head master, head-master, headmaster)