This is a question to the first answer given on this thread: Product of path connected spaces is path connected. Unfortunately, I have too little experience to comment this directly below the answer.
Why does the 'universal property of the initial topology' (outlined below) yield the existence of a unique mapping $\gamma$ such that $\pi_i \circ \gamma = \gamma_i$? As in, why is it not necessary to define a mapping $\gamma$ and to check whether $\pi_i \circ \gamma$ holds for all $i$?
Proposition (Universal Property of the initial topology). Let $X$ be a set, let $(Y_\alpha)_{\alpha \in A}$ be a family of topological spaces, and let $f_\alpha \colon X \to Y_\alpha$ be functions. Let $\mathcal T_X$ be the topology on $X$. Then $\mathcal T_X$ is the initial topology on $X$ with respect to the maps $f_\alpha$ if and only if $(X, \mathcal T_X)$ has the following property: If $(Z, \mathcal T_Z)$ is a topological space and $g \colon Z \to X$ is a map, then $g$ is continuous if and only if $f_\alpha \circ g \colon Z \to Y_\alpha$ is continuous for all $\alpha$.
In other words, (since the question in the link discusses a situation with a product topology on $\prod_\alpha Y_\alpha$,) why does the above proposition yield the existence of a unique map $\gamma$ as given in the answer? I managed to define $\gamma$ as a map $X \to \prod_\alpha Y_\alpha$ given by $t \mapsto (\gamma_i(t))_{i \in I}$, such that indeed $\pi_i \circ \gamma = \gamma_i (=$ continuous), hence, by the proposition $\gamma$ must be continuous. But what ensures existence of $\gamma$ in the first place?