Question. See the title.
Attempt. I can simplify the congruence $25 \cdot 6^{-1}\equiv 25 \cdot (-4) \; \mathrm{mod} \: 5^4$ equivalently to $6^{-1}\equiv -4 \; \mathrm{mod} \: 5^2$ which is true if $6^{-1}$ is the inverse of $6$ under $\mathrm{mod} \; 5^2$ but not true under $\mathrm{mod} \; 5^4$. However, the congruence in the question holds: $6^{-1}\equiv 521\;\mathrm{mod}\; 5^4$, and $25\cdot 521 = 13025 \equiv -100 \; \mathrm{mod} \; 5^4$. So what happened? I cannot figure it out. Thanks.
Update. I just realized that my core confusion was why $6^{-1}$ under $\mathrm{mod}\;5^4$ stays the same when we go down to $\mathrm{mod}\;5^2$, but it is actually obviously true because a multiple of $5^4$ is a multiple of $5^2$.