This follows by the basic fact that possible denominators for a fraction are closed under gcd, i.e. if a fraction $\:\!q\:\!$ is writable with denom's $\,b\,$ and $\,b'\:\!$ then it's also writable with denom $\:\!\gcd(b,b').\, $
It is a $\:\!1\:\!$ line $\rm\color{#90f}{Proof}$ from your $\:\!\color{#0af}{\rm E}\:\!$ equality, via $\:\!\rm\color{#0a0}{DL}$ = gcd Distributive Law $\,x(y,z)\! =\! (xy,xz),\,$ i.e.
$\!\begin{align} {\bf Your\ case}\!:\,\ \ 0< q = \rm\small \color{c00}{\frac{a\!-\!c}{d\!+\!b}} &\overset{\color{#0af}{\rm\small E}}={\rm {\small \dfrac{d\!-\!b}{a\!+\!c}}} \Rightarrow\ q \rm = {\small \dfrac{(a\!-\!c,d\!-\!b)}{(d\!+\!b,a\!+\!c)} = \frac{k}n}, \ \ \text{follows by}\\[.5em]
{\bf Lemma}\!:\quad\ \ 0\,<\, q\ =\ \color{#c00}{\dfrac{a}{b}}\,\ &=\,\ \color{#c00}{\dfrac{a'}{b'}}\ \ \ \Rightarrow\,\ \ \ q\ =\ \dfrac{(a,a')}{(b,b')}, \ \ \begin{array}{}(x,y) :=\gcd(x,y)\\ \:\!{\rm wlog}\,\ \color{c00}{a,b} > 0\end{array}\\
\color{#90f}{\bf Proof}\!:\:\!\ \color{darkorange}{a}(b,b') \overset{\rm\color{#0a0}{\small DL_{\phantom{'}\!}}}=\:\! (\!\!\overbrace{a b, \color{#c00}{ab'}}^{\textstyle (ba,\color{#c00}{ba'})}\!\!) & \overset{\rm\color{#0a0}{\small DL_{\phantom{'}\!}}}=\:\! \color{darkorange}{b}\:\!(a,a')\,\Rightarrow\, {\dfrac{\color{darkorange}a}{\color{darkorange}b}}=\dfrac{(a,a')}{(b,b')}\\[.4em]
{\bf Example}\!:\qquad\ \ \ q \,=\, \dfrac{133}{247} &= \dfrac{119}{221} \,\Rightarrow\, q = \dfrac{(133,119)}{(247,221)} = \dfrac{7}{13}\\
\end{align}\qquad$
Remark $ $ It's instructive to give a few more proofs. First, by $\:\!\color{#0af}{\rm U}$ = gcd Universal property we've
$(1)\ $ Recall that a fraction $\:\!q\:\!$ can be written with denominator $\:\!b\:\!$ iff its least denominator $\,d\mid b.\,$ Hence $\:\!b,b'\:\!$ are denoms for $\:\!q\:\!$ $\!\iff\! d\mid b,b'\!\!\!\!\overset{\color{#0af}{\rm U}\!\!}\iff\! d\mid (b,b')\!\iff\! (b,b')\,$ is a denom for $\:\!q$.
$(2)\ $ Bezout $\Rightarrow (b,b')\!=\!j\:\!b\! +\! j'\:\!b',\,$ so $\, \begin{align} \color{#c00}{b\ q} &= \color{#c00}a\\ \color{#0a0}{b'q} &= \color{#0a0}{a'}\end{align}\!\Rightarrow\:\! (b,b')q = j\:\!\color{#c00}{bq}+j'\:\!\color{#0a0}{b'q} = j\:\!\color{#c00}a\!+\!j'\color{#0a0}{a'}\!\in\Bbb Z,\,$ which effectively boils down to transforming our above initial proof of the Lemma by replacing use of $\:\!\rm\color{#0a0}{DL}$ = gcd Distributivity by its Bezout-based proof (which fails in non-Bezout UFDs like $\Bbb Z[x], \Bbb Q[x,y]$).
$(3)\ $ The Lemma can be also interpreted in terms of a natrual extension of gcd to rationals..
Though - as usual - we can also give a proof of the Lemma using prime factorizations, the above proof has the advantage that it generalizes more widely since it requires much less - only a distributive law. Namely, if we eliminate use of fractions then the Lemma boils down to
$$\begin{align} \color{#c00}{b'a} &\,=\, \color{#0a0}{a'b}\\[.2em]
\Rightarrow\ \ (b,\color{#c00}{b'})\color{#c00}a &\,=\, (a,\color{#0a0}{a'})\color{#0a0}b\end{align}\qquad\qquad$$
This inference also works for many other algebraic systems enjoying distributivity, e.g. we can read $\:\!(x,y)\:\!$ as an ideal instead of a gcd and it remains true. More simply, we can read $\:\!(x,y)\:\!$ as $\,x+y\,$ and then the proof shows that the mediant has the same value as two equal fractions, i.e.
$$q\, =\, \color{c00}{\dfrac{a}{b}\ =\ \dfrac{a'}{b'}}\ \Rightarrow\ q = \dfrac{a+a'}{b+b'}\ \left[=\dfrac{j\:\!a+k\:\!a'}{j\:\!b+k\:\!b'}\right]\qquad\quad\ \ \ $$
[and works similarly for the (multi-)linear form $\,(x,y):= j\:\!x\!+\!k\:\!y,\,$ used e.g. here to prove uniqueness of prime factorizations, by a (subtractive) denom descent proof of Euclid's Lemma].
Such Euclidean descent on equivalent fractions often proves handy, e.g. we can use it to efficiently do the extended Euclidean algorithm in (modular) fraction form, e.g. see here and here.
As explained here, we can also view the Lemma in order language, since the least denom of a fraction is its order in $\,\Bbb Q/\Bbb Z.\,$ Then said denominator descent is: $ $ if $\,m,n\,$ are denom's of $\,q\,$ then so too is their gcd $\:\!(n,m),\,$ i.e.
$${\rm if}\ \ \overbrace{\color{#0a0}{mq, nq\equiv 0}\in\Bbb Q/\Bbb Z}^{\textstyle mq,nq\in\Bbb Z}\ \ {\rm then}\ \ \overbrace{\color{#c00}{(m,n)q\equiv 0}\in\Bbb Q/\Bbb Z}^{\textstyle(m,n)q\in\Bbb Z},\ \ {\rm by}\! \overbrace{{\rm ord}\,q}^{\text{least denom}}\!\!\!\!\mid m,n\,\overset{\color{#0af}{\!\rm U}}\Rightarrow\, {{\rm ord}\,q}\mid (m,n)$$
which is simply an additive form of the following well-known theorem written in period language: if $\,m,n\,$ are periods of $\,q\,$ then so too is their gcd $\,(m,n),\,$ i.e.
$$\ {\rm if}\ \ \ \color{#0a0}{q^m,q^n\! = 1}\ \ \ \ {\rm then}\ \ \ \ \color{#c00}{q^{(m,n)}=1},\ \ {\rm by} \underbrace{{\rm ord}\,q}_{\text{least period}}\!\!\!\!\mid m,n\,\overset{\color{#0af}{\!\rm U}}\Rightarrow\,{\rm ord}\,q\mid (m,n)\quad$$
These ideas are abstracted when studying
pertinent algebraic structures: $ $ ideals and modules - in particular order ideals and denominator ideals, or annihilator ideals (in PIDs).