A proof for the identity
$$\int_{-\infty}^{\infty} f(x)\, dx=\int_{-\infty}^{\infty} f\left(x-\frac{1}{x}\right)\, dx,$$
has been asked before (for example, here), and one answer to that question actually generalized this identity to
$$\int_{-\infty}^{\infty} f(x)\, dx=\int_{-\infty}^{\infty} f\left(x-\frac{a}{x}\right)\, dx,$$
for any $a>0$. I've looked through those answers, and I understand the proofs well enough, but none of them provides any intuition on why this identity is true. It seems very strange to me that you can transform the function like this while preserving the integral, and even stranger that the choice of $a$ doesn't matter either. Just to be clear, I'm not asking to see a rigorous proof - there are plenty of those in the other question's answers. But if anyone could give me an intuitive sense of why this holds, or a heuristic argument, I'd really appreciate it.


I don't know if this provides the type of intuition sought. And one might interpret this as just one more approach to proving the identity. But I thought that this might shed a bit of intuition as to what is going on here.
To that end, we provide a way forward that exploits symmetry and inversion. First, let us write the function $f$ in terms of its even and odd parts as
$$f(x)= f^{e}(x)+f^{o}(x)$$
where $f^{e}(x)=\frac12(f(x)+f(-x))$ and $f^{0}(x)=\frac12(f(x)-f(-x))$ are the even and odd parts of $f$, respectively.
Next, we write the integral of interest $I$ as
$$\begin{align} I&=\int_{-\infty}^{\infty}f\left(x-\frac1x\right)dx\\\\ &=2\int_0^{\infty}f^{e}\left(x-\frac1x\right)dx \tag1 \end{align}$$
So, we can write $I$ in terms of the even part of $f$.
Now, here is why exploiting the even symmetry of $f^{e}$ is important. We will now make a transformation under inversion. Letting $x\to \frac1x$, $(1)$ becomes
$$\begin{align} \int_{-\infty}^{\infty}f\left(x-\frac1x\right)dx&=2\int_0^{\infty}f^{e}\left(\frac1x-x\right)\frac{1}{x^2}dx \\\\ &=2\int_0^{\infty}f^{e}\left(x-\frac1x\right)\frac{1}{x^2}dx \tag2 \end{align}$$
where in arriving at $(2)$, we used $f^{e}(x)=f^{e}(-x)$. So, upon adding the right-hand sides of $(1)$ and $(2)$ and dividing by $2$ we obtain
$$\int_{-\infty}^{\infty}f\left(x-\frac1x\right)dx=\int_{0}^{\infty}f^{e}\left(x-\frac1x\right)\left(1+\frac{1}{x^2}\right)\,dx$$
At this point, all we have is that the integral of interest is decomposed into the sum of an integral of its even part and an integral of an "inverted" even part. But, now we notice that the "scale factor" is the derivative of the argument of $f^{e}$ and thus we find that
$$\begin{align} \int_{-\infty}^{\infty}f\left(x-\frac1x\right)dx&=\int_{-\infty}^{\infty}f^{e}(x)\,dx\\\\ &=\int_{-\infty}^{\infty}f(x)\,dx \end{align}$$
as expected.