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?