I have a naive question on algebraic geometry.
To fix a context we consider $\phi:X\to Y$ a morphism between two affine varieties over an algebraic closed field $k$.
This give under the anti-equivalence of categories a k-algebra morphism $\phi^*$ between coordinate algebras of $Y$ and $X$.
However, $\phi^*$ injective doesn't imply $\phi$ surjective. Think for example to the projection of the hyperbola $XY=1$ to the $X$-axis.
Shouldn't the anti-equivalence of categories force a correspondence between injective and surjective morphisms? It must be that surjective morphism of affine varieties are not the epimorphisms in the categorical sense, but I don't understand why?
I know that for finite morphisms for instance, we have this correspondence. So I am wondering what are the epimorphisms and monomorphisms in the category of affine varieties?
Thanks in advance!
Regards, Moustik