This is a common source of confusion, and has to do with the definitions of length and time intervals. Let's set the stage: we have two frames $S$ and $S'$, with $S'$ moving with respect to $S$ at a constant velocity $v$. We are looking at how lengths and time intervals that someone observes in $S'$ (i.e. the "proper" length and the "proper" time-interval) appear to an observer in $S$.
Let's also write out the Lorentz Transformations:
\begin{equation}
\begin{aligned}
&\text{(A)}\quad\Delta x^\prime = \gamma \left(\Delta x - v \Delta t\right)\\
&\text{(B)}\quad \Delta t^\prime = \gamma \left( \Delta t - \frac{v}{c^2}\Delta x\right)\\
\\
&\text{(C)}\quad\Delta x = \gamma \left(\Delta x^\prime + v \Delta t^\prime \right)\\
&\text{(D)}\quad \Delta t = \gamma \left( \Delta t^\prime + \frac{v}{c^2}\Delta x^\prime \right)\\
\end{aligned}
\end{equation}
What does it mean to measure length?
Let's say there is a rod in the frame $S'$. To someone sitting in $S$, the rod appears to be moving with respect to them. If the observer in $S$ wants to measure the length of the rod, they need to mark the endpoints of the rod simultaneously. If they wait for a couple of seconds between marking the left hand coordinate and the right hand coordinate of the rod, then the rod would have moved in between these measurements, and one would measure a much larger length than the actual one.
Thus, you want to relate the difference in coordinates observed in $S'$ (which is $\Delta x'$) with the difference in coordinates observed in $S$ (which is $\Delta x$) when the time interval between measurements in $S$ is zero ($\Delta t=0$). And clearly, the equation to do that is $(A)$.
See my answer here for more details on how length intervals are measured: What is wrong in this false derivation of length “dilation”?
What does it mean to measure time intervals?
Let's say there's a clock in $S'$. To someone sitting in $S$, the clock is moving with respect to them. The observer in $S$ wants to measure the time that has elapsed for that clock (which is moving with respect to them) between two events. Now, in the $S'$ frame, the clock appears to be at rest, and therefore its coordinates are fixed between the two measurement events. i.e. $\Delta x'=0$. And we want to relate the time interval elapsed in $S'$ (which is $\Delta t'$), with the one elapsed in $S$ (which is $\Delta t$), and so the equation we need is $(D)$.
See my answer here for more details on how time measurements are related between frames: Why is this assumption made in deriving time dilation?