It's just scaling an equality (congruence)
$\rm\quad \begin{array}{rl}\rm a \times (b\equiv c)\!\!\! &\to&\rm ab\equiv ac\\
\\
7^{-2}\! \times (7^{64}\!\equiv 1)\!\!\! &\to& 7^{62}\equiv 7^{-2}\end{array}$
Remark $\ $ Congruences $\rm\:a\color{#C00}{\equiv} b\:$ behave similar to equalities $\rm\:a\color{#C00}= b\:$ in that they can be added, and multiplied. Scaling is a special case of multiplication, i.e. above is the product of $\rm\:a \equiv a\:$ by $\rm\:b\equiv c.\:$ When working with congruences it is essential to conceive them as generalized equalities so that you can transfer all of your well-honed equational arithmetical skills to congruence arithmetic.