Quoting from wikipedia:
A homomorphism is a map between two algebraic structures of the same type (that is of the same name), that preserves the operations of the structures. This means a map ${\displaystyle f:A\to B}$ between two sets ${\displaystyle A}, {\displaystyle B}$ equipped with the same structure such that, if $\cdot$ is an operation of the structure (supposed here, for simplification, to be a binary operation), then ${\displaystyle f(x\cdot y)=f(x)\cdot f(y)}$ for every pair ${\displaystyle x}$, ${\displaystyle y}$ of elements of ${\displaystyle A}$. One says often that ${\displaystyle f}$ preserves the operation or is compatible with the operation.
And while dealing with groups we do have a binary operation '$\cdot$' such that the above definiton follows exactly.
I do not however see what 'it means' to preserve structure from the above definiton.
In particular if I had defined, for groups, homomorphism as follows:
A map $H: G \to G_1$ such that for all $a,b\in G$ $$H(a\cdot b)=(Ha)^2 \cdot (Hb)^2$$
Then in what sense would this definiton not preserve structure while the original one does?
let's look at an simple example why $H(a \cdot b) = (H(a))^2 \cdot (H(b))^2$ isn't a good definition. As you probably know, each group $G$ has an identity element $e_G$, which is an very important part of the structure, hence $H$ should preserve this element (i.e $H(e_G) = e_{G_1}$).
Let's imagine a map $H : G \to G_1$ with $H(a \cdot b) = (H(a))^2 \cdot (H(b))^2$. Then $H(a) = e_{G_1}$ holds for each element.
To see this, we use $a \cdot e_G = a$. We conclude $$H(a) = H(a \cdot e_G) = H(a)^2 \cdot H(e_G)^2 = H(a)^2 \cdot (e_{G_1})^2 = H(a)^2.$$ By taking the inverse on both side, we get $e_{G_1} = H(a)$.
Actually, $H$ is a group homomorphism, but a quite boring one.