In Hypothesis testing,
Comparison of a sample mean with an assigned population mean: $$Z=\frac{\overline x-\mu_0}{\frac{\sigma}{\sqrt n}}\text{ Or }Z=\frac{\overline x-\mu_0}{\frac{s}{\sqrt n}}$$ But in Comparison of two independent sample means(when $\sigma_1^2$ and $\sigma_2^2$ are known): $$d=\frac{(\overline x_1-\overline x_2)-\mathbb E(\overline x_1-\overline x_2)}{\sqrt{Var(\overline x_1-\overline x_2)}}=\frac{(\overline x_1-\overline x_2)}{\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}}$$
I was wondering why $\sqrt n$ is missing in the second case$?$ Even it's missing for other cases( when $\sigma_1^2$ and $\sigma_2^2$ are unknown but equal, when $\sigma_1^2$ and $\sigma_2^2$ are unknown but unequal ).
I heartily thank if anyone explain this.