Barium has more electrons shells than calcium, so the nuclear shielding is stronger, and the outmost electrons are further away from the nucleus. This results in a weaker attractive force between the electron and the nucleus, so a smaller energy is required to remove it.