The first shell can only hold up to two electrons so that both shells are paired.
This is also known as Pauli Exclusion Principle- a principle that states that only two electrons with different "spin" quantum number may occupy the same atomic orbital in the same atom. When atoms gain and lose electrons they follow an octet rule instead of the duet.