I've tried both calculations on Wolfram Alpha and it returns different results, but I can't get a grasp of why it is like that. From my point of view, both calculations should be the same, as $2.5=25/10,$ and $(-2)^{2.5}$ is equal to $(-2)^{25/10},$ relying on a general rule $(a^m)^n=a^{mn}$.
Links to sources:
https://www.wolframalpha.com/input/?i=(-2)%5E(2.5)
https://www.wolframalpha.com/input/?i=((-2)%5E(25))%5E(1%2F10)
J.W. Tanner has communicated the main point and provided some links to questions that provide more details. I'd like to try to tell the (mostly) whole story in one place.
Recall that the standard definition of $a^b$ for $a \in \mathbb{R}_{>0}$, $b\in \mathbb{R}$ is
$$a^b := e^{b\ln(a)}$$
Where the exponential function can be defined in several ways-- through its power series, as the solution to the differential equation $y'=y$, or the inverse to the natural logarithm (which is in turn defined as the integral $\ln(x)=\int_1^x\frac{1}{t}dt$). From this definition, it's clear that $b\ln(a)=\ln(a^b)$, so we have
$$a^{bc} = e^{bc\ln(a)}=e^{c\ln(a^b)}=(a^b)^c.$$
However, for $a \leq 0$, this definition requires us to make sense of $\ln(a)$, and the integral definition referenced above diverges. How might we do this? Since we're trying to understand exponentiation of negative numbers, we surely must include the case of $(-1)^{1/2} = \pm i \in \mathbb{C}$, so we can't get around working in the complex plane. If we want to try to extend our earlier definition of $a^b$, then, we're forced to confront the extension of the exponential function to the complex plane. Fortunately, the exponential function's power series definition extends naturally to the complex plane, and from it we can easily derive Euler's identity, which states
$$e^{i\theta} = \cos(\theta)+i\sin(\theta)$$
for $\theta \in \mathbb{R}$, so $e^{i\theta}$ is a point on the unit circle at angle $\theta$ from the positive real axis, measured counterclockwise. In particular, we see that any nonzero complex number $z$ can be written uniquely as $z=re^{i\theta}$ for some $r \in \mathbb{R}_{>0}$ and $-\pi < \theta \leq \pi$. If we want a defining property of our extension of the natural logarithm to be that the exponential function inverts it (which it had better, if the original formula is to always return $a^1=a$), then, one way to define the natural logarithm of $z$ is $\ln(z) := \ln(r)+i\theta$, as this gives $$e^{\ln(z)}=e^{\ln(r)+i\theta}=re^{i\theta}=z,$$ as desired. Note $z=r$ and $\theta=0$ if $z$ is real and positive, so this is indeed an extension of the usual natural logarithm.
However, this choice was not unique-- we had to restrict $-\pi < \theta \leq \pi$ to make this definition. If our defining property is just inversion by the exponential function, it's clear that $\ln(z)=\ln(r)+i(\theta+2\pi n)$ works just as well for any integer $n$, and in general one could define a natural logarithm by instead restricting $\theta$ to be in any interval of length $2\pi$ we want, even making the interval a function of $r$-- making this choice is called choosing a branch of the logarithm. The original definition I gave is called the principal branch, and this is what most calculators like Wolfram Alpha will use. Going back to our definition of $a^b$ and declaring it true for any $a,b \in \mathbb{C}$, we see the result depends on our choice of branch. This is what people mean when they say that exponentiation isn't uniquely defined in $\mathbb{C}$.
Now, let's finally see what goes wrong in your example using the principal branch of the logarithm to define $(-2)^{2.5}$ and $((-2)^{25})^{1/10}$. We have $$(-2)^{2.5}=e^{2.5\ln(-2)}=e^{2.5(\ln(2)+i\pi)}=e^{2.5\ln(2)+2.5\pi i}=e^{2.5\ln(2)}e^{i\frac{\pi}{2}} = 2^{2.5}i,$$ while $$((-2)^{25})^{1/10}=(-2^{25})^{1/10} = e^{\frac{1}{10}\ln(-2^{25})} = e^{\frac{1}{10}(\ln(2^{25})+i\pi)} = 2^{2.5}e^{i\pi/10}=2^{2.5}(\cos(\pi/10)+i\sin(\pi/10)),$$ and these are clearly different. This example demonstrates precisely that, in general, the identity $a^{bc}=(a^b)^c$ does not hold if $a$ is not a positive real number, and you can similarly see that this identity breaks down if $b$ is not real, even if $a \in \mathbb{R}_{>0}$.