While it is true that given $\{G_i\}_{i \in I}$ you have inclusion maps $G_i \to \prod_{i \in I} G_i$, the product $\prod_{i \in I} G_i$ does not satisfy the universal property of the coproduct if $I$ is infinite.
From a conceptual point of view, a map $F: \bigoplus G_i \to G$ coming from maps $f_i : G_i \to G$ is just $F((g_i)_i) = \sum_{i} f_i(g_i)$ where we only sum over the indexes $i \in I$ with $g_i \neq 0$. However, if we try to do the same with a direct product, we would have to deal with infinite sum more or less which does not work in this context.
For example, take $G_i = \mathbb{Z}$ with $I = \mathbb{Z}$ and the identity map $G_i \to \mathbb{Z}$. If $\prod_{i \in I} G_i$ where a coproduct, then there would exist a map $t: \prod_{i \in I} G_i \to \mathbb{Z}$ which restricts to the identity on every $G_i$.
If $\sigma : I \to I$ is any permutation, then the induced map $T_\sigma : \prod_{i \in I} G_i \to \prod_{i \in I} G_i$ coming from the identity maps $G_i \to G_{\sigma(i)}$ leaves $t$ invariant, i.e. $t \circ T_\sigma = t$.
Now, take $g = (\dots,1,1,1,\dots) \in \prod_{i \in I} G_i$ and note that $g = (\dots,0,1,0,1,\dots) + (\dots,1,0,1,0,\dots)$. As one of these summands is obtained from the other by a shift, it follows that $t$ takes the same value on both of them. So $t(g)$ is divisible by $2$. With similar reasoning, you find that $t(g)$ is divisible by any positive integer (write $g$ as a sum of $n$ elements, with $n-1$ zeroes followed by $1$ and shift $n-1$ times). Consequently, we have $t(g) = 0$. However, the same method works if we replace $g$ by $h = (\dots,1,1,0,1,1,\dots)$ where we have replaced a $1$ at one index with a $0$ (the permutations we need to use here are again shifts so to speak only we need them to jump over the position with the zero in it). Thus $t(h) = 0$ as well, but then $1 = t(g-h) = 0$ gives a contradiction.