Assume that the sheaves below are sheaves of abelian groups based on a topological space $X$ as Hartshorne did in his Algebraic Geometry.
So on page 64, Hartshorne introduces two notions: the sheaf $\mathscr F^+$ associated to the presheaf $\mathscr F$ and a morphism of sheaves being surjective, so a morphism $\varphi:\mathscr F\longrightarrow \mathscr G$ is surjective if im$\mathscr F$ = $\mathscr G$.
However, as the definition on the same page, for any open set $U$ of $X$, im$\mathscr F(U)$ is the set of functions $s$ from $U$ to $\cup$ preim$\mathscr F_{p}$, but the sheaf $\mathscr G$ is just an abstract sheaf. What exactly does it mean that the maps in im$\mathscr F$ equal $\mathscr G$?
Let $preim(\mathcal F)$ denote the image presheaf (that sends $U$ to the image of $\mathcal F(U)$ in $\mathcal G(U))$. There is a natural map from $preim(\mathcal F)$ to $\mathcal G$ given by inclusion. By the sheafification universal property, there is a map $im \mathcal F \to \mathcal G$. Equality just means this map is an isomorphism.
By the way, this definition of surjective is a bit strange, but what it is trying to say is not that every map $\mathcal F(U) \to \mathcal G(U)$ is surjective, but rather if we have $s \in \mathcal G(U)$, then there is an open cover $\{U_i\}$ of $U$ and $s_i \in \mathcal F(U_i)$ such that the image of $s_i$ in $\mathcal G(U_i)$ agrees with the restriction of $s$. So locally we can lift sections of $\mathcal G$. This is essentially the content of the exercise showing that the maps across the stalks are all surjective.