I am a beginner in this topic but I am aware that when flame test (for alkali and alkaline earth metals) is done there is a s-s transition of electrons from the ground to their excited state.
But I don't understand why the electron needs to transit back to their ground state if I consider that the temperature of the oxidising or non luminous flame (that is the energy supplied to the electron) remains constant.
So my question is
Why does the electron release the absorbed energy and transit back to the ground state even though a constant external energy is supplied to it?
In other words, what is the need for the electron to absorb the energy , then reach the excited state and release the energy to transit back to the ground state. Instead why does it not remain in the excited state after absorbing the required amount.