What is the inverse of $y = 10^{-x}$?
These are my steps for the problem.
Step 1 $y = 10^{-x}$.
Step 2 $x = 10^{-y}$ by inverse substitution.
Step 3 $10^y(x) = 1$.
Step 4 $10^y = \frac{1}{x}$.
Step 5 $y = \log \frac{1}{x}$.
Step 6 $y = -\log x$.
Then how is the inverse $y = 10^{-x}$? I do not understand why $- \log x$ is equal to $10^{-x}$.

You do not assume they are equal to be inverses. The two functions $10^{-x}$ and $-\log x$ are inverses of each other $x>0$ because $$10^{-(-\log_{10} x)} = 10^{\log_{10} x} = x >0,$$ and $$-\log_{10} (10^{-x}) = -(-x)\log_{10}(10) = x.$$