From Munkres Topology section $58$:
Why is a deformation retraction defined as $H: X \times I \to X$ instead of $H: X \times I \to A$?
It seems it would make more sense to define it as $H: X \times I \to A$ and get rid of the composition $j \circ r$.
Is this not possible?

Since part of the definition is that $H(x,0)=x$ for all $x\in X$, every $x\in X$ must be in the codomain of $H$. You only know that $H(x,t)\in A$ when $t=1$, and for other values of $t$ this need not be true (and in fact it must fail to be true if $t=0$ and $x\not\in A$).