The key here is the following property of maps on finite sets:
Suppose $f : X \to Y$, where $X$ and $Y$ are finite with $|X| = |Y|$. Then $f$ is injective if and only if it is surjective.
Let us consider the group operation restricted to $A^{-1} \times B$. This is a function from $A^{-1} \times B$ to $G$. Note that
$$|A^{-1} \times B| = |A^{-1}||B| = |A||B| = |G|.$$
The middle equality comes from the fact that inversion is a bijection on $G$, so it preserves the cardinality of sets.
Suppose $A^{-1}B \neq G$. Then, this restricted group operation is not surjective, and hence is not injective. In particular, this implies that there are $a_1, a_2 \in A$ and $b_1, b_2 \in B$, such that $a_1 \neq a_2$ or $b_1 \neq b_2$, and
$$a_1^{-1} b_1 = a_2^{-1} b_2.$$
Given $G$ is Abelian, this is equivalent to
$$a_2 b_1 = a_1 b_2,$$
such that $a_2 \neq a_1$ or $b_1 \neq b_2$.
If we consider the group operation restricted instead to $A \times B$, we now have shown that this map is not injective. It is therefore not surjective, and hence $G \neq AB$, establishing the contrapositive.