On the wikipedia page about variance I have found the following equality
$$ Var(\overline{X})=Var(\frac{1}{n}\sum_{i=1}^{n}X_{i})=\frac{1}{n^{2}}\sum_{i=1}^{n}Var(X_{i})=\frac{1}{n^{2}}n\sigma^{2}=\frac{\sigma^{2}}{n} $$
I am confused because $Var(X_{i})$ is replaced by $\sigma^{2}$ where $\sigma^{2}$ is the variance of the population. I don't understand this because $X_{i}$ is not the population. It is a single value from a sample. Why this replacement is allowed?