I am aware that flavors of this question get asked a lot, for e.g., here. I am fine with the sample variance being divided by $n-1$ and that is what makes it an unbiased estimator of the population variance. So far, so good.
However, when looking at stratified sampling, many resources, this for instance, indicate that the within stratum variance should also be obtained by dividing by $N_h - 1$. It is not clear why this should be. Is not the whole idea that each of the strata are homogeneous within themselves and heterogeneous between them? So, should not each stratum by itself be considered a full population by itself thereby leading to divide by $N_h$?
For reference, the formula provided for the population variance at that resource is:
$S_h^2=\frac{1}{N_h-1} \sum_{i=1}^{N_h}\left(Y_{h i}-\bar{Y}_h\right)^2$
and
$\bar{Y}_h = \frac{1}{N_h}\sum_{i=1}^{N_h}Y_{hi}$