The documents I have consulted quickly pass on the question of knowing why an indefinite integral of a function f is not written as " integral from a to x of f(x)dx" but rather as " integral from a to x of f(t)dt".
What confusion or non-sense would it produce to let the variable x remain in the expression?
Why is this variable change necessary in the case of definite integral, and not in the case of indefinite integral?
Because a variable is supposed yo have one specific meaning in an equation (or a collection of them that forms some closed whole). The $t$ as variable over which you integrate is one meaning (it takes the values between the limits, if you recall what integration means), the limit is fixed.