In a proof in Introduction to Algorithms, the book says $\binom{n}{2} \cdot \frac{1}{n^{2}} = \frac{n^2 - n }{2}\cdot \frac{1}{n^{2}}$, which implies $\binom{n}{2} = \frac{n^2 - n }{2}$.
Why are these equivalent? Is it a special case of a more general rule?
Yes. In general, we have that $$ \binom{n}{k}=\frac{n!}{k!(n-k)!} $$ whenever $k\leq n$ and $0$ if $k>n$. You can see here for a more intuitive description of this using a combinatorial argument. In your case, you have $k=2$ (so you truly do have a "special case" of a more general rule). Thus, we have the following; $$\require{cancel} \binom{n}{2}=\frac{n!}{2!(n-2)!}=\frac{n(n-1)\cancel{(n-2)!}}{2!\cancel{(n-2)!}}=\frac{n(n-1)}{2}=\frac{n^2-n}{2}, $$ which is what you wanted to show. Does that clear things up?