For instance, we have $$1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+...=\frac{\pi}{4}$$ $$1+\frac{1}{2^2}+\frac{1}{3^2}+\frac{1}{4^2}+...=\frac{\pi^2}{6}$$ $$1-\frac{1}{3^3}+\frac{1}{5^3}-\frac{1}{7^3}+...=\frac{\pi^3}{32}$$ $$1+\frac{1}{2^4}+\frac{1}{3^4}+\frac{1}{4^4}+...=\frac{\pi^4}{90}$$
All the $\pi$s come up for no apparent reason. Is there any reason why infinite series give rise to $\pi$, especially in the case when it ends up in powers of $\pi$?
I can think of Fourier transform and Reimann Zeta function as an approach, but I'm not a math guy so I have no idea how to explain this.
Edit: Further powers: $$1-\frac{1}{3^5}+\frac{1}{5^5}-\frac{1}{7^5}+...=\frac{5\pi^5}{1536}$$ $$1+\frac{1}{2^6}+\frac{1}{3^6}+\frac{1}{4^6}+...=\frac{\pi^6}{945}$$ $$1-\frac{1}{3^7}+\frac{1}{5^7}-\frac{1}{7^7}+...=\frac{61\pi^7}{184320}$$ $$1+\frac{1}{2^8}+\frac{1}{3^8}+\frac{1}{4^8}+...=\frac{\pi^8}{9450}$$