Consider $H$ abelian (so $\operatorname{Hom}(G,H)$ has a group structurep) and the group operation of $\operatorname{Hom}(G,H)$ is defined by $(\phi_{1}\phi_{2})(g):=\phi_{1}(g)\phi_{2}(g)$.
Take $G=S_{3}$ and $H=<e>$. Then $\operatorname{Hom}(G,H)$ has only the trivial homomorphism $\phi(g)=e$, for all $g\in G$. Hence, $|\operatorname{Hom}(G,H)|=1$ and $\operatorname{Hom}(G,H)\simeq <e>=H$. Thus $\operatorname{Hom}(G,H)$ is abelian, but $G=S_{3}$ does not abelian.
My question is: Do you know another examples? Thanks.