If you play around a little more, you will also notice that:
$$
\frac{1+\sqrt{5}}{2} = 1+\dfrac{1}{1+\dfrac{1}{1+\dfrac{1}{1+\dfrac{1}{1+ \ldots} } } }
$$
Which simplifies to $x = 1+ \frac 1x \implies x^2=x+1$.
It's no coincidence. I mean to say, it comes directly from the equation itself.
Just to give you another example: The equation $x^2 = 4+x$ is satisfied by the fraction $\frac{1+\sqrt{17}}{2}$. Now, we can use the same logic to extend this fellow:
$$
x = \sqrt{4 + x} = \sqrt{4 + \sqrt{4 + \sqrt{4 + \sqrt{4 + \ldots}}}}
$$
While at the same time, this also expands as a continuous fraction, namely:
$$
x = 1 + \frac{4}{x} = 1 + \frac{4}{1 + \frac{4}{1 + \frac{4}{1 + \frac{4}{1 + \ldots} } } }
$$
You see, it's not a coincidence, yet it's wonderful.
The question arises: Can we do this with other quadratic polynomials?
Take for example, $ax^2+bx+c=0$. Then $ax^2 = -bx-c$ and $x^2 = -\frac{b}{a}x -\frac{c}{a}$.
This will expand now in an interesting way:
$$
x = \sqrt{-\frac{c}{a}-\frac{b}{a}x} = \sqrt{-\frac{c}{a}-\frac{b}{a}\sqrt{-\frac{c}{a}-\frac{b}{a}\sqrt{-\frac{c}{a}-\frac{b}{a} \ldots}}}
$$
And as a continuous fraction:
$$
x = -\frac{b}{a} - \frac{c}{ax} =-\frac{b}{a} - \frac{c}{a(-\frac{b}{a} - \frac{c}{a(-\frac{b}{a} - \frac{c}{a \ldots} )}) }
$$
That is your license to play around. Please do so. Also, see what you get if $ax^3+bx^2+cx+d=0$, and if you can find something interesting here do comment.