Direct product of groups is not the coproduct On page 66 of Lang’s Algebra he states the following:

Let $G$ = ∏ $G_i$ be a direct product of groups. Then each $G_j$ admits an injective homomorphism into the product, on the $j$-th component, namely the map $λ_j$ : $G_j$ → ∏ $G_i$ such that for $x$ in $G_j$, the $i$-th component of $λ_j(x)$ is the is the unit element of $G_i$ if $i ≠ j$, and is equal to $x$ itself if $i = j$. This embedding will be called the canonical one. But we still don’t have a coproduct of the family, because the factors commute with each other.

I understand each point until the final sentence. What is meant by “the factors commute with each other” and why does this imply that the direct product cannot be a coproduct of a family?
 A: A coproduct of the family $\{G_i\}_{i\in I}$ is a group $C$ together with maps (embeddings in fact, though that can be deduced from the universal property) $\lambda_i\colon G_i\to C$ with the following universal property:

Given any group $H$ and a family of morphisms $f_i\colon G_i\to H$, there exists a unique morphism $F\colon C\to H$ such that $f_i=F\circ\lambda_i$ for each $i\in I$.

Lang is noting that you can embedd each $G_i$ into the product using the functions $\lambda_i$. He also notes that if $i\neq j$, then for every $x\in G_i$, $y\in G_j$, you have that $\lambda_i(x)$ and $\lambda_j(y)$ commute. That means that the image of $\lambda_i(x)$ and the image of $\lambda_j(y)$ will commute under any homomorphism $F\colon\prod G_i\to H$.
But this is a problem: if you can find a group $H$ and morphisms $f_i\colon G_i\to H$ with the property that there are $i$ and $j$, $i\neq j$, such that not every element of $f_i(G_i)$ commutes with every element of $f_j(G_j)$, then there is no way to find a morphism $F\colon \prod G_i\to H$ that will satisfy $F\circ\lambda_i=f_i$. And such groups and maps abound, which means that the fact that images of the $G_i$ inside the product commute with one another doom the product from being able to be the coproduct in the category of all groups.
(The product does have the relevant universal property relative to any family of morphisms $f_i\colon G_i\to H$ that have the additional property that every element of $f_i(G_i)$ commutes with every element of $f_j(G_j)$ whenever $i\neq j$; and of course you can see why, at least in the finite index case, the product will work as a coproduct for abelian groups, that is, if every group in sight is abelian.)
