The dummy variable under the integral sign is t, but the integral itself is a function of x, and the derivative is taken with respect to x.
Imagine a simpler situation where you have d/dx of the integral from 0 to x of t with respect to t.
The integral would result in x^2/2, which, when differentiated wrt x would return x (not t).