It had many advantages over wheat or barley - it yielded two and a half times more food energy (the chemical energy that animals derive from food to sustain metabolism) per unit of cultivated area.
In addition, corn could grow in successive years in the same field, in different climates (both dry and wet), and at different altitudes.