I was following lecture notes on light-matter interactions by Claudiu Genes (pdf link). Refer to chapter 1 : we are dealing with a two level atomic system governed by the ladder operators $\sigma = |g\rangle\langle e|$ and $\sigma^{\dagger}$. The energy gap between the ground and excited state corresponds to photon mode $\textbf{k}_0$. There is an electromagnetic field which interacts with the two level system, and it's $H_{int}$ is given by
$$H_{int}=\sum_{\textbf{k}}g_{\textbf{k}}(a_{\textbf{k}}\sigma^{\dagger}+\sigma a^{\dagger}_{\textbf{k}})$$ This two level system is coupled to it's environment, where it leaks photon of mode $\textbf{k}_0$ (see page 10 of the link). Now, jump to section 1.5 : If we start with an initial state $|i\rangle = |e\rangle \otimes |0,0,\cdots , 1_{\textbf{k}_0}, 0,0\cdots \rangle$ , then we get
$$H_{int}|i\rangle = \sqrt{2}g_{\textbf{k}_0}|g\rangle \otimes |0,0,\cdots , 2_{\textbf{k}_0}, 0,0\cdots \rangle+\sum_{k\neq k_0}g_{\textbf{k}}|g\rangle \otimes |0,0,\cdots , 1_{\textbf{k}_0}, 0,0\cdots , 1_{\textbf{k}},\cdots \rangle$$
This second term is then attributed to spontaneous emission.
The math is okay. What I do not understand conceptually is that electron transition from $|e\rangle \to |g\rangle $ should only produce photon mode $\textbf{k}_0$ and not any arbitrary $\textbf{k}$. It seems to be loosing or gaining energy of the amount proportional to $|\textbf{k}-\textbf{k}_0|$. Where is this extra energy coming from or going to? I tried to motivate myself that, there are probably other kinds of interactions with the environment going on under the hood ? However, the Hamiltonian is concerned with EM interactions only. Also, the system seems to be only leaking mode $\textbf{k}_0$ to the environment.
Note : similar question has been asked before, for eg here. Here OP doesn't mention about the environmental conditions. But the answer to the question :" In particular, are several modes of the field populated with photons at the various frequencies?" seems affirmative. My question is where are these extra modes $\textbf{k}$ coming from , in the setup mentioned in the lecture note