A constant morphism $f \in \mathrm{Hom}(X,Y)$ is a morphism such that for any object $Z$ and any morphisms $g,h \in \mathrm{Hom}(Z,X)$, $f \circ g = f \circ h$. This is very easy to grasp and one can think of many examples. For instance, in the category of continuous real-valued functions, any map $f(x) = k$ where $k$ is a real number proves to be a constant morphism.
On the other hand, a morphism $f \in \mathrm{Hom}(X,Y)$ is coconstant if for any object $Z$ and morphisms $g,h \in \mathrm{Hom}(Y, Z)$ we have $g \circ f = h \circ f$. In this case, the only real-valued function that I can think of that satisfies this is the $0$-map.
What are some good, nontrivial examples of coconstant functions that can provide intuition for understanding this concept? That is, other than the obvious use of this device to provide duality for the constant morphism, does it have any deeper meaning/significance? I understand what the definition means but don't really see its use beyond the simple examples given.