Ahh! I think I see what's bothering you---The Axiom of Choice where infinite sets are concerned
Let me assume a ZF Theory of Sets.
Now suppose X is a collection of sets consisting of an infinite number of only nonempty sets (not necessarily disjointed) as its elements say X_1, X_2, X_3,...
Now you'd like to "define" a choice function for $X$, which means
that you'd like to produce a set-theoretical formula (more specifically, a predicate of two free variables x and y) $\Phi(x,\ y)$ which is functional in the variable $x$ that assigns to each set $X_i\ \in\ X$, a unique element $y_i\ \in\ X_i$ such that $\Phi(X_i,\ y_i)$ is true.
But there's a problem if you attempt to do this! (you cannot finish writing down such a predicate)
The problem is in producing (or writing down or describing in a finite way) such a predicate in the language of ZF Theory. In other words, in the language of ZF Theory, such a predicate $\Phi(x,\ y)$ would require an "infinite string" of ZF set-theoretical symbols from the ZF vocabulary. This is impermissible in ZF Theory.
A new Axiom is required, one that can choose a unique element from each the sets of $X$ (in one swoop) without providing any instructions on how the choices are to be made----The Axiom of Choice (is at your service)
In the case that $X$ is a collection of finitely many non-empty sets and in some special cases where $X$ is an infinite collection, ZF affords many formulas that could express a choice function for $X$. For instance,
$X = \{X_1,\ X_2\}$ where $X_1 = \{a,\ b\}$ and $X_2 = \{c,\ d\}$ a choice function for $X$ is $$\Phi(x,\ y)\ \equiv\ ((x =\ X_1)\ \ \&\ \ (y = a))\ \vee\ ((x = X_2)\ \ \&\ \ (y\ =\ d))$$
Now in the special case where $X$ is an infinite collection of non-empty sets given by
$$X_1= \{a_0,\ b_0\},\ X_2 = \{a_1,\ b_1\},\ X_3 = \{a_2,\ b_2\},\ \dots,\ X_i = \{a_{i-1},\ b_{i-1}\},\ \dots$$ a choice function for this $X$ is
$$\Phi(x,\ \omega)\ \equiv\ (\exists y)(y\ \in\ \omega\ \ \&\ \ x = a_y)$$where $\Phi(x,\ \omega)$ is a property of $x$ and $\omega$ is a constant parameter denoting the set of all natural numbers that may be used to derive a choice-set $T_X$ of $X$ where
$$T_X = \Bigl\{x\ \in\ \cup X\,\vert\; \ \Phi(x,\ \omega)\Bigr\} = \{a_0,\ a_1,\ a_2,\ \dots\}$$ and a choice-function would be
$$f:X\ \to\ \bigcup_{A\ \in\ X}A\ \ \hbox{where}\ f(X_i) =\ a_i\ \hbox{for all}\ i\ \in\ \omega$$ ( Axiom of Extensionality, Axiom Schema of Replacement (In particular, the Axiom schema of Specification), Axiom of PowerSet, Axiom of Union and the Axiom of Infinity are assumed and nothing else)
Principle of Choice: For every "disjointed-set" $\mathcal{S}$, $\mathcal{S}$ not having $\varnothing$ as one of its elements, there exists a binary predicate $\Phi(x,\ y)$ of two free variables $x$ and $y$ that assigns to each of the non-empty sets $u$ of $\mathcal{S}$ a unique "$\Phi$-mate"---$v = \Phi(u)$ belonging to $u$ such that $\Phi(u,\ v)$ is true.
Axiom of Choice: Given a set $\mathcal{S}$ consisting of only nonempty pairwise-disjoint sets, there exists a set $T_{\mathcal{S}}$ whose elements
consists of exactly one element from each of the sets in $\mathcal{S}$; that is, a set $T_{\mathcal{S}}$ exists such that the union of the elements of $\mathcal{S}$ set-theoretically includes $T_{\mathcal{S}}$, and for each $X\ \in\ \mathcal{S}$, the set $T_{\mathcal{S}}\ \cap\ X$ is a singleton-set (it
contains a single element).
The set $T_{\mathcal{S}}$ is called a choice-set of $\mathcal{S}$ and is identical to the set of $\Phi$-mates of the binary predicate $\Phi(x,\ y)$ functional in $x$ whose existence is asserted in the above Principle of Choice.
The above Principle of Choice is equivalent to the Axiom of Choice (you can prove this).