From the noun phrase lower case, which itself consists of an adjective modifying a noun; when used as a noun adjunct then, to render its syntactical function clearer and simpler, it is written as a single word or with a hyphen as a sort of chunking.
Practice speaking and memorizing "lowercase" and many other words and sentences in English.