I was reading this post Does every set have a group structure? and I'd like some clarifications if possible.
If $X$ is uncountable, by the Axiom of Choice we'll have $|X| = \kappa$. I'm not sure why the direct sum $\bigoplus_{i \in \kappa} \mathbb{Z}$ has cardinality $\kappa$ and why that would make $X$ into a group.
Any set you put in bijection with a group can be made into a group, but I'm not seeing with the direct sum.
This is a cardinal arithmetic thing.
First, note that the union of $\kappa$ many sets which are countable and pairwise disjoint is itself a set of size $\kappa$.
Next, recall that if $X$ is infinite, then the set of finite sequences from $X$ has size $|X|$ again.
Finally, the direct sum can be represented as functions $f\colon\kappa\to\bigsqcup_{i<\kappa}\Bbb Z$ such that $f(\alpha)$ lies in the $\alpha$th copy of $\Bbb Z$, and $f(\alpha)=0$ for all but finitely many functions. This is equivalent to a subset of the finite sequences from this union, whose size is $\kappa$.
All this means that the size is at most $\kappa$, and I will leave you figuring out why it is at least $\kappa$.