Consider a real element, like sodium. That first electron is really easy to knock off-- Sodium will pretty much give away its valence electron to the first person who asks. So the first electron will have a low ionization energy. But to strip off two electrons, you have to put in the energy for the first one, which isn’t much… but then you have a full outer shell, and it’s a shell that’s deeper in, and harder to strip electrons from. So in addition to the small energy for the first one, now you have to put in a big amount of energy to strip the second one (and the third, and the fourth, if you’re trying to ionize it further).
It’s similar for calcium: The two valence electrons are pretty easy, but then you get to harder electrons, and have to pay a steep price for each of them.
Yeah, sodium’s positively demure compared to her big sisters. But at least none of them will give up their electrons to two halogens at once, like those alkaloids will… <tsk, tsk>