This is a special case of casting out nines, which is best viewed in terms of modular arithmetic:
$\rm\quad mod\,\ 9\!:\, \ \color{#c00}{10\equiv 1}\ \Rightarrow\ P(\color{#c00}{10})\equiv P(\color{#c00}1)\ \ $ for all polynomials $\rm\,P(x)\,$ with integer coefficients
by the Polynomial Congruence Rule.
But radix notation has polynomial form, e.g. $\rm\ 567 = P(10)\,$ for $\rm\, P(x) = 5\, x^2 + 6\,x + 7.\, $ Therefore, the above implies that $ $ mod $\,9\!:\ \rm N = P(10)\equiv P(1) = $ the sum $\rm\,S_N$ of the decimal digits of $\rm\,N.$
Yours is special case $\rm\ N\equiv 0\pmod{\! 9}\ $ so the above implies that it remains $\equiv 0\ $ when you map $\rm N$ to its digit sum $\rm\:S_N.\:$ Since this map is strictly decreasing for $\rm\:N > 9,\ $ iterating it must eventually reach some nonzero $\rm\: N' \le 9.\ $ But $\rm\ N'\equiv 0\pmod{\!9}\, $ so we conclude that $\rm\: N' = 9.$
If modular arithmetic is unfamiliar we could instead use divisibility rules or proceed as follows:
Factor Theorem $\rm\,\Rightarrow\, X\!-\!1\mid P(X)\!-\!P(1)\ $ so $\rm\ X = 10\ \Rightarrow\ 9\mid P(10)\!-\!P(1)\ $ i.e. $\rm\; 9\mid N\! -\! S_N$
The analogous result holds true for any radix $\rm\:b,\,$ i.e. one can cast $\rm\:b\!-\!1$'s in the same way, since $\rm\ P(b) \equiv P(1)\pmod{\! b\!-\!1}.\:$ Hence $\:9\:$ is "special" because it is one less than the radix $10.\,$
Similarly we can cast $11$'s by $\!\rm\bmod 11\!:\ \color{#c00}{10\equiv -1}\,\Rightarrow\, P(\color{#c00}{10})\equiv P(\color{#c00}{-1})\equiv p_0 -p_1 + p_2 -p_3 +\cdots.\, $ Similarly casting $1001 = 7\cdot 11\cdot 13\,$ by taking this alternating digit sum in radix $\,10^3\,$ yields a combined divisibility test for $\,7,11,13\,$. We get countless divisibility tests via such modular reduction, e.g. see here for casting out $91$'s.
It deserves to be better known that we may also cast out nines to check rational arithmetic - as long as the fractions have denominator coprime to $3$, e.g. see Hilton; Pedersen: Casting out nines revisited (these results are very old). Analogous remarks hold true for any ring that has $\ \mathbb Z/9\ $ as an image - just as one can apply parity arguments in any ring that has $\ \mathbb Z/2\ $ as an image, e.g. the ring of all rationals with odd denominator, or the ring of Gaussian integers $\,\mathbb Z[i],\,$ where the image $\, \mathbb Z[i]/(2,i\!-\!1) \cong \mathbb Z/2\ $ yields the natural parity definition: $\, a+b\:i\ $ is even $\iff a\equiv b\pmod{\! 2},\,$ i.e. if $\, a+b\:i\ $ maps to $\:0\:$ via the above isomorphism, which maps $\, 2\to 0,\ i\to 1\:$. See here for further discussion of parity in rings of algebraic integers, including examples of number rings with no parity structure, and with more than one parity structure. See also this post for "casting out orders" in cyclic groups, and see this thread for an in-depth comparison of various elementary inductive proofs of casting nines.
These are elementary prototypical examples of problem-solving by way of modular reduction - one of the keystones of abstract algebra. As such one should be sure to understand these simple instances before moving on to more advanced manifestations of modular reduction.