We are using that
$$\left(1-\frac{a^2}{x^2}\right)^{x^2}=e^{x^2 \ln\left(1-\frac{a^2}{x^2}\right)}$$
and $x^2 \ln\left(1-\frac{a^2}{x^2}\right)$ is an indeterminate form $\infty \cdot 0$ and since the Taylor's expansion for $\ln (1+t)$ as $t\to 0$ is
$$\ln (1+t)=t-\frac12t^2+\frac13 t^3-\frac14t^4+\ldots$$
the result follows.
As an intuitive explanation of the result and for the indeterminate form $1^{\infty}$, we need to consider that, in that case, while the base tends to $1^-$ the effect of the exponent is to make the quantity smaller towards zero. The final result is indeed a value in between that is $\frac1{e^{a^2}}$.
That's of course not always the case since all depends upon the rate of convergence to $1$ for the base and the rate of divergence for the exponent. We can indeed obtain any result between $[0,\infty)$ depending on that. That's why we define that an indeterminate form.
For example as $x \to \infty$
- $\forall a\in \mathbb{R}\quad \left(1+\frac ax\right)^x\to e^a$
and as a consequence
- $\left(1+\frac ax\right)^{x^2}\to \infty \quad a>0$
- $\left(1+\frac ax\right)^{x^2}\to 1 \quad a=0$
- $\left(1+\frac ax\right)^{x^2}\to 0 \quad a<0$