Answer
Coulomb's law explains this.
Work Step by Step
According to Coulomb's law, greater charges leads to a greater attraction. Since Mg has a charge of 2+ while Na only has a charge of 1+, the attraction in MgO is much stronger, meaning that more energy is needed to break it.