The reason is very simple, because "t=-u" can be used for substitution, which is determined by the nature of definite integral.
And why do the signs of the upper and lower limits of the integral change after changing the yuan?
Let t=-u, then u=-t, and when x=-x, u =-(-x) = x; When x=a, u =-a.