It's a matter of applying an appropriate mean-value theorem (namely the Cauchy MVT) to the remainder function as you vary the base point. Explicitly, let us fix $0$ and $x>0$. For each $s\in [0,x]$, let us consider the expansion of $f$ about $s$:
\begin{align}
f(x)&=\sum_{k=0}^n\frac{f^{(k)}(s)}{k!}(x-s)^k+\rho(s),
\end{align}
i.e we are fixing $0$ and $x$ and defining $\rho(s)$ to be the difference $f(x)-\sum_{k=0}^n\frac{f^{(k)}(s)}{k!}(x-s)^k$. Since $f$ is $n+1$ times differentiable, we certainly have that $\rho$ is once differentiable. Observe also that $\rho(0):= f(x)-\sum_{k=0}^n\frac{f^{(k)}(0)}{k!}x^k$ is the remainder we are interested in, and $\rho(x)=0$ from the definition. So, $\rho(0)=\rho(0)-\rho(x)$. Ah, such a difference is exactly what the mean-value theorem, and by extension, the Cauchy MVT are intended to give us information about. So, in anticipation of this, we note that a direct calculation using the product rule and evaluating the resulting telescoping sum yields $\rho'(s)=-\frac{f^{(n+1)}(s)}{n!}(x-s)^n$.
Suppose we have another function $\phi:\Bbb{R}\to\Bbb{R}$ which is nice enough. Then, how can we express our remainder $\rho(0)$ of interest in terms of these functions? Well,
\begin{align}
\rho(0)&=\rho(0)-\rho(x)\\
&=\frac{\rho(0)-\rho(x)}{\phi(0)-\phi(x)}[\phi(0)-\phi(x)]\\
&=\frac{\rho'(\lambda)}{\phi'(\lambda)}[\phi(0)-\phi(x)]\\
&=\frac{f^{n+1}(\lambda)(x-\lambda)^n}{n!}\cdot\frac{\phi(x)-\phi(0)}{\phi'(\lambda)}
\end{align}
for some $\lambda\in (0,x)$, by the Cauchy MVT. So, we can state Taylor's remainder theorem with respect to a function $\phi$ as:
\begin{align}
f(x)&=\sum_{k=0}^n\frac{f^{(k)}(0)}{k!}x^k+\rho(0)\\
&=\sum_{k=0}^n\frac{f^{(k)}(0)}{k!}x^k + \frac{f^{(n+1)}(\lambda)(x-\lambda)^n}{n!}\cdot\frac{\phi(x)-\phi(0)}{\phi'(\lambda)}
\end{align}
So, by varying the base point $s$ in the Taylor polynomial, we get a hole bunch of remainders, $\rho(s)$, and this function is differentiable. The Cauchy MVT, which I find to be pretty geometric (it says ratio of averages on an interval equals ratio of slopes at some point), now gives us many ways of expressing the remainder $\rho(0)$.
By choosing $\phi$ appropriately, we get corresponding forms of the remainder. FOr example, choosing $\phi$ to be the identity function $\phi(s)=s$, this amounts to directly applying the MVT to $\rho$ and thus tells us the remainder is $\rho(0)=\frac{f^{(n+1)}(\lambda)(x-\lambda)^n}{n!}x$. If instead we choose $\phi(s)=(x-s)^{n+1}$, then we get $\rho(0)=\frac{f^{(n+1)}(\lambda)}{(n+1)!}x^{n+1}$, the Lagrange form of the remainder.
Alternatively, we can use the FTC (assuming $\rho'$ is Riemann-integrable, or equivalently $f^{(n+1)}$ is RIemann integrable) to say $\rho(0)=\rho(0)-\rho(x)=-\int_0^x\rho'(s)\,ds=\int_0^x\frac{f^{(n+1)}(s)}{n!}(x-s)^n\,ds$, which gives us the integral form of the remainder.
So, the point is that we have a function $\rho$ which at each $s$ gives the remainder $\rho(s)$ when $f$ is Taylor expanded about $s$. The goal is to express $\rho(0)$ in more manageable terms. This is of course a highly non-unique procedure; we can express the same quantity $\rho(0)$ in many different-looking ways by using different techniques (MVT vs Cauchy MVT with respect to a particular $\phi$, vs FTC).