There is much discussion on this site why the sum of squared deviations is divided by $n - 1$ when computing either the sample variance or the sample standard deviation.
One of the explanations that I heard for this is that we 'used' some of the data to estimate the population mean with the sample mean. Therefore, that cost 1 degree of freedom.
Can someone please explain, then, why, when calculating the standard error of the sample proportions (as part of the z-test for 1 population proportion) we divide by $n$ and not $n - 1$. The first step in that process is to compute $\widehat{p}$. Then, the standard error of the sample proportions is 'built' on the foundation of that first step. I would have thought that estimating the population proportion with the sample proportion would have cost us 1 degree of freedom. I know that when the assumptions are met, the sample proportions are distributed normal (whose shape is not governed by degrees of freedom), but I am left wondering why this calculation (and quite frankly, the calculation for the standard error of the sample mean) is not analogous to what we did for the sample standard deviation. Why are both of these standard errors calculated by dividing by $n$ and not $n - 1$?