The metal racks do not become hot from the microwaves, but in early microwaves that didn't use turntables or steer the microwaves, all the microwaves would come from one direction and bounce around until absorbed and the metal racks could shield the food preventing it cooking properly. Also if any metal in the microwave comes close enough to any other metal, the gap between them will spark madly.
SteveW