I am thinking about the universal property of products:
Let $X$ and $Y$ be objects of a category $D$. The product of $X$ and $Y$ is an object $X \times Y$ together with two morphisms
$\pi_1 : X \times Y \rightarrow X$
$\pi_2: X \times Y \rightarrow Y$
such that for any other object $Z$ of $D$ and morphisms $f : Z \rightarrow X$ and $g : Z \rightarrow Y$ there exists a unique morphism $h: Z \rightarrow X \times Y$ such that $f = \pi_1 \circ h$ and $g = \pi_2 \circ h$.
Does it mean that of all morphisms, only one satisfies this, but there could be a map which is not a morphims which makes this work?
That is, if any map $h$ makes this diagram commute then it must necessarily be a morphism?
Sorry, if this is obvious - still getting my head around making sense of caterory theoretic formulations.
To explain where I am coming from: my projections and map $f,g$ are morphisms in category I am working in (say $A$, and I know finite products exists in $A$), I have found a $h$ in conceivably a different category (say $B$) which makes everything commute. I am trying to see if it's possible to argue by virtue of everything else being in $A$, that $h$ must also be a morphism in $A$. There's probably a silly counter example to this that I am missing.
In the context of category theory, all "maps" are morphisms. There are no other "maps". If, however, you happen to know that the morphisms in your category correspond to morphisms in another category (typically via a functor), then you can talk about whether a product in one category is a product in the corresponding category. Put a little more formally, if $U : \mathcal{C} \to \mathcal{D}$ is a functor which takes morphisms in your category to morphisms in another category (and we'll call morphisms in this other category "maps"), your question is: if $p_1: UX \to UA$ and $p_2 : UX \to UB$ form a product in $\mathcal{D}$, then is it necessarily the case that $p_1 = U\pi_1$ and $p_2 = U\pi_2$ for unique $\pi_1$ and $\pi_2$ which form a product in $\mathcal{C}$? If this is the case, we say $U$ creates products (or, for general limits, $U$ creates limits).
Taking the example from Wikipedia, if $U : \mathbf{Grp} \to \mathbf{Set}$ where $U$ is the underlying set functor which takes a group and simply forgets the extra structure, then $U$ creates limits. Then from your example or the above, you can think of $h$ as a group homomorphism (a morphism of $\mathbf{Grp}$) and $Uh$ as a set function or "map" (a morphism of $\mathbf{Set}$). Then, for this example, the property you talk about holds. Creating limits is not at all guaranteed, though it is an attribute of algebraic cases. For a counter-example, if $U : \mathbf{Top} \to \mathbf{Set}$ then the morphisms of $\mathbf{Top}$ are continuous functions, where the product in the underlying category is essentially what we'd get for the discrete topology, but if we had another topology...