The question could do with a little more context: if the text in question is this one, the quotation is discussing specifically the rules for normal confidence intervals, where estimates of the confidence intervals for are calculated based on the assumption that the sample mean has an approximately normal distribution: if it doesn't, the numbers will not be the same.
One extreme example is the uniform distribution on $[a,b]$, where the standard deviation is $(b-a)/\sqrt{12}$. Then the probability that an observation lies within one standard deviations of the mean is $2/\sqrt{12} \approx 0.577 $, while all observations will lie within two standard deviations, in complete contrast to the normal distribution, where the probabilities are about $0.683$ and $0.954$. However, if we take enough independent observations, the Central Limit Theorem guarantees that a normal distribution is a good enough approximation.
On the other hand, there are distributions where even taking a lot of independent observations does not give an approximately normal distribution for the sample mean: if it turned out that the data had a Cauchy distribution, for example, the sample mean also has a Cauchy distribution; the CLT does not apply here because the tails of the Cauchy distribution contain too much probability for observations to clump in the way that produces a normal sample mean.
The moral of the story is that you can calculate confidence intervals (and $p$-values) for the mean for any distribution (by using the cumulative distribution function and its inverse, for example), and it is possible to extend this to the sample mean, but in the simple cases encountered in beginning statistics, it is normally good enough to take enough independent observations, and then the CLT says that assuming that the sample mean has a normal distribution is reasonably accurate; this is why the normal distribution is so important. Hence one can get away with having just the numbers for the normal distribution to hand a lot of the time (although professional statisticians are very happy to tell you that there are numerous important cases where this doesn't work and you have to pay them to tell you the right answer!).