Let $ R $ be a random variable and $ S = T \left( R \right) $ where $ T \left( \cdot \right) $ is a one to one continuous transformation on the domain of $ R $.
Since it is one to one transformation it must be strictly monotone. Let's test the 2 possible cases.
The Transformation $ T \left( \cdot \right) $ Is Strictly Increasing
Utilizing the function is one to one:
$$ {F}_{S} \left( s \right) = \mathbb{P} \left( S \leq s \right) = \mathbb{P} \left( T \left( R \right) \leq s \right) = \mathbb{P} \left( R \leq {T}^{-1} \left( s \right) \right) = {F}_{R} \left( {T}^{-1} \left( s \right) \right) $$
Using the Chain Rule to compute the density function:
$$ {f}_{S} \left( s \right) = {F}^{'}_{S} \left( s \right) = \frac{d}{d s} {F}_{R} \left( {T}^{-1} \left( s \right) \right) = {f}_{R} \left( {T}^{-1} \left( s \right) \right) \frac{d}{d s} {T}^{-1} \left( s \right) $$
The Transformation $ T \left( \cdot \right) $ Is Strictly Decreasing
Utilizing the function is one to one and decreasing:
$$ {F}_{S} \left( s \right) = \mathbb{P} \left( S \leq s \right) = \mathbb{P} \left( T \left( R \right) \leq s \right) = \mathbb{P} \left( R \leq {T}^{-1} \left( s \right) \right) = 1 - {F}_{R} \left( {T}^{-1} \left( s \right) \right) $$
Using the Chain Rule to compute the density function and the fact the inverse function also decreasing hence its derivative is also negative:
$$ {f}_{S} \left( s \right) = {F}^{'}_{S} \left( s \right) = -\frac{d}{d s} {F}_{R} \left( {T}^{-1} \left( s \right) \right) = {f}_{R} \left( {T}^{-1} \left( s \right) \right) \left(- \frac{d}{d s} {T}^{-1} \left( s \right) \right) $$
Summary
Since for the first case $ \frac{d}{d s} {T}^{-1} \left( s \right) $ is positive and for the second case $ - \frac{d}{d s} {T}^{-1} \left( s \right) $ is positive we can join them both into:
$$ {f}_{S} \left( s \right) = {F}^{'}_{S} \left( s \right) = -\frac{d}{d s} {F}_{R} \left( {T}^{-1} \left( s \right) \right) = {f}_{R} \left( {T}^{-1} \left( s \right) \right) \left| \frac{d}{d s} {T}^{-1} \left( s \right) \right| $$
Remark
I guess this is needed in the section before the Histogram Equalization where similar trick is used to derive the operator.