What I've also noticed in myself and other people is that seemingly weird German genders come from not saying the second part of a compound word.
I.e. "das Factory" which does sound somewhat weird (because I would think of "die Fabrik" instead), comes from "das Factory-Pattern" where "Pattern" ("das Muster") was omitted for brevity.