I am currently studying about confidence Interval of any parameter of a population like mean and proportion while studying I came across a two formula one for mean and other for proportion.

formula for proportion

formula for mean.

I want to know why we have used the z-statistics in place of t-statistics when calculating a confidence interval for a proportion .