An atom gets most energetic when:
The Electron is removed from K shell
Its toughest to remove an electron closest to the nucleus which is a K-shell electron. Maximum amount of energy is needed to be supplied to remove an electron from K-shell as compared to other shells. Hence, the atom gets the most excited when an electron from K-Shell is removed.