D&D came from wargames, which had a referee who was there to adjudicate rules, not play. There were no rules for what the referee should DO in D&D, other than to referee rules, make a dungeon, and pick monsters – combat stuff. Over time RPGs grew more expectations for GMs, but not RULES for GMs.