There is a general result involving a basic construction on groupoids: given a groupoid $G$ with object set $S$ and a function $f: S \to T$ to a set $T$ one can construct a new groupoid say $f_*(G)$ with object set $T$ and with a universal property which is nicely expressed by saying that there is the following pushout diagram of groupoids, in which $D(S)$ is the discrete groupoid on $S$:
$$ \begin{matrix}
D(S) & \xrightarrow{D(f)} & D(T) \\
\downarrow && \downarrow\\
G & \xrightarrow{\bar{f}} & f_*(G)
\end{matrix}
$$
This idea is due to Philip HIggins, see his downloadable book Categories and Groupoids.
A particular case is when $T$ is a singleton, when we get the universal group $U(G)$ of the groupoid $G$. If all the vertex groups of $G$ are trivial, then $U(G)$ is a free group.
Special cases of this construction $U(G)$ are free products of groups, and free groups.
This result has topological applications which are given in Section 9.1 of the downloadable book Topology and Groupoids, as they were in the 1968, 1988 differently titled editions. One has to introduce the notion of the fundamental groupoid $\pi_1(X,S)$ on a set $S$ of base points to deal adequately with the situation when one is identifying some or all of a discrete discrete set $S$ of points. (Of course, one can get round the problem but the idea is to "match the algebra to the geometry, not force the geometry into a particular mode simply because that mode is more familiar", as remarked, I was told, by Philip Hall.)
I published this idea of $\pi_1(X,S)$ in 1967 in order to have a version of the van Kampen Theorem which would compute the fundamental group of the circle, which is, after all, the basic example in algebraic topology. I am unsure why this this idea is, almost 50 years later, found "ideosyncratic".
Compare with this mathoverflow question and answers.