When a new noun enters the German language, who decides what gender, linguistically, it will be?

For instance, someone decided "die U-Bahn" should be feminine, and "der Computer" should be masculine. Who does that sort of thing, and how do they decide?
6 answers 6