You cheated yourself in a very interesting way! This is really illuminating!
When we solve equations, we usually just open a new line and write down some consequence of the condition. For example:
$$2x-3=2$$
$$2x=5$$
$$x=5/2$$
And then we make a note that the solution is $5/2$, without really thinking about what was happening. In fact, opening a new line and write an equation below the previous one has a very definite meaning: it is a consequence of the previous line. So usually, fake roots can sneak in, as we do not necessarily want to apply equivalent transformations, we only want to collect logical consequences of the equation. The strategy is that if we find a logical consequence that we can solve, then it simplyfies our task, as the solutions of the original equation must be among the solutions of the consequence. Throwing away extraneous roots are not so hard, after all...
Now back to your problem. You correctly deduced that if $x$ is a root, then it must also satisfy
$$E_1: x+1=-x^2$$
$$E_2: x+1+1/x=0$$
And then in particular, it also has to satisfy
$$E_3: -x^2+1/x=0$$
This is all true. But not in the other way around. Note that your original equation is equaivalent to $E_1$ which is also equivalent to $E_2$. You can also take the conjunction of two equivalent statements, to obtain an equivalent statement again. So $E_1\wedge E_2$ is also equivalent to your original condition. However, $E_3$ is just a consequence of $E_1\wedge E_2$, but from $E_3$, you cannot deduce $E_1$ or $E_2$ separately.
So long story short: not all your transformations were equivalent ones, hence extraneous roots can (and in this case did) occur.