I'm working through an online course on Hypothesis Testing where a one-sample test of proportions is done using bootstrapping. I have some grounding in statistics, where the test statistic $ z $ for a one-sample test of proportions is mathematically calculated using te formula: $$ z = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0 * (1-p_0)}{n}}} $$, where $ p_0 $ is the hypothesized population proportion. The denominator is the standard error.
The course however estimates this using a bootstrap: it takes several resamples of a sample and takes the standard deviation of $ \hat{p} $ to be an estimate of the standard error, which can simply be mathematically calculated.
In related course, bootstrapping is used to estimate the standard error of the sampling distribution of the mean of a continuous variable. This standard error is then used to compute a confidence interval for the sample mean, using the CDF of a normal distribution.
My question is again similar to the proportions case: don't we already know the standard error of the sample mean? Isn't it just $ \frac{s}{\sqrt{n}} $ where $ s $ is the sample standard deviation and $ n $ the sample size? On top of this, we also know that the sampling distribution of the sample means follows a normal distribution (CLT) -- so we shouldn't need bootstrapping to generate a confidence interval.
Why do we need the bootstrap distribution to estimate standard error of the sampling distribution of a statistic?