Generally, $a(x)=b(x)$ is equivalent to $a(x)-b(x)=0$, while $a^2(x)=b^2(x)$ is equivalent to
$$0=a^2(x)-b^2(x)=(a(x)-b(x)(a(x)+b(x)).$$
The last equation shows where extraneous solution come from when "squaring": they are solutions of $a(x)+b(x) = 0$.
It just so happens that in your case, where $a(x)=\sqrt{\ldots}$ and $b(x)=\frac23$, which are both non-negative (and the second actually positive), so their sum can never be zero!
In addition, in practical work with such equations, extraneous solutions also come from non-rigorously defined (or simply not computed) domains for the variable to be calculated.
For example, the equation
$$\sqrt{x+1} = \sqrt{x^2+2x-1}$$
has a single solution in $\mathbb R$, namely $x=2$. The squared equation
$$x+1 = x^2+2x-1$$
however has 2 real solutions: $x_1=2, x_2=-1$. The extraneous solution $x_2=-1$ comes from the fact that the original equation is meaningless for that $x$ value (when considering real numbers only). The original equation only makes sense (when working with real numbers) when $x \in [\sqrt{2}-1,\infty).$
Confined to that domain, the squared equation has no extraneous solutions.
But in a real world scenario, you often do not bother making a complete analysis of when the original equation is well-defined (which may be a harder problem than solving it!), but you apply squaring and other "non-equivalent" techniques and then have to remember that the solutions you find at the end are just "candidate solutions" for the original equation.