This is not true. If it were, then $\mathbf C\otimes_\overline{\mathbf{Q}}\mathbf C$ would have only one maximal ideal, hence would be a local ring. However, it follows from the main theorem in this paper of Sweedler that $\mathbf C\otimes_\overline{\mathbf{Q}}\mathbf C$ is not a local ring, because $\mathbf C$ is transcendental over $\overline{\mathbf Q}$.
Shafarevich definitely meant to say that $X$ and $Y$ were of finite type over $k$. I had previously misread your question as being about that case, and I wrote the following answer. Even though I see now that you have already worked this case out, perhaps someone can benefit, so I will leave my old answer here:
This is one of those things that is completely obvious from the point of view of classical geometry: the image of a point is a point. What else could it be! For schemes, with "point" meaning "closed point", this is not true in general, and the fact that it is true for varieties reflects a special property of affine algebras:
If $f: A \to B$ is a morphism of affine $k$-algebras and $\mathfrak m$
is a maximal ideal of $B$, then $f^{-1}(\mathfrak m)$ is a maximal
ideal of $A$.
To prove it, consider the composite $A \to B \to k$ where $B\to k$ is the evaluation at $\mathfrak m$ (quotient) map. It is obviously surjective with kernel $f^{-1}(\mathfrak m)$, hence $f^{-1}(\mathfrak m)$ is maximal.
Remarks:
This is still true if $k$ is not algebraically closed, but the composite $A \to B/\mathfrak m = k'$ need no longer be surjective, because $k'$ might be a nontrivial extension of $k$. However, its image is still a subfield of $k'$; to prove it, one uses Zariski's lemma, which I used implicitly in the algebraically closed case to identify $B/\mathfrak m$ with $k$.
More generally, this is true if $k$ is replaced by a Jacobson ring $R$. In fact, the statement that this property holds for all morphisms of affine $R$-algebras is equivalent to $R$ being Jacobson.
At least, this is what I have gathered from here: http://math.stackexchange.com/questions/107291/the-preimage-of-a-maximal-ideal-is-maximal
– Gabriel_s_syme May 16 '14 at 13:56Anywho as stated above, the map doesn't need to be surjective anyway.
Also I still haven't quite figured out why the map is a bijection of closed points.
– Gabriel_s_syme May 18 '14 at 20:47