Corn was generic for many grains. We didn't even know about maize when we first used the word corn. A quick glance at the OED shows that, while wheat was used to refer to a number of grains, they were all closely related. It doesn't seem to have been used to refer to all cereal grains.