Energy levels, also known as electron shells, signify the probable distance of an electron from the nucleus. Electrons in the outermost levels are usually the easiest to remove, requiring less ionization energy.
When we look at lithium, its electrons are in the 1s and 2s energy levels, with the 2nd level being the outermost. Thus, the electron here is strongly held by the nucleus and requires more energy to remove.
In carbon, while its electrons also reside in the second-level orbitals, the presence of
orbitals allows for some distance and increased energy, which impacts the ease of removing electrons. The understanding of energy levels is key to predicting and explaining the ionization energy differences among atoms.