I interpret this as a more general question of why alkaline earth elements are electropositive metals and not noble gases.
The answer is basically they do not have enough electrons in their valence shells to be strongly stabilizedcas elements. All the electrons below the outer $s^2$ pair are in shells having fewer nodes in their quantum mechanical wavefunctions, and the presence of fewer nodes makes these inner-electron waves so compact they shield almost all of the nuclear charge from the outer pair. So the outer pair of electrons have low effective nuclear charge attracting them, which translates to their own wavefunctions being relatively diffuse and their ionization energies being relatively low.
Helium and, to a lesser extent, beryllium are exceptions because helium has no such inner-shell electrons and beryllium has only one pair, whereas magnesium and heavier $s^2$ elements have multiple pairs and more nodes in their outer-shell wavefunctions. Hence the failure of helium to readily form compounds and the lesser failure of beryllium to form predominantly ionic ones. By the time we get to magnesium we already have the shielded structure described above well-enough developed to enable the ready formation of predominantly ionic compounds, even with the relatively low-electronegativity elements hydrogen and boron.