Let $f \in Hom(G, G')$, $f:G \rightarrow G'$
Moreover if $G, G'$ are sets such that : $(G, \star )$, $(G', \cdot )$are groups we have the following condition on $f$ :
$$f(x \star y) = f(x) \cdot f(y) $$ My question is then : why this particular condition on $f$ ? Why not for example : $f(x \star y) = x \cdot f(y)$ ?
And moreover why finding an homomorphism between two sets is important, does it helps proving something between two groups ?



You probably confuse a homomorphism with something that you are familiar: A function $f:ℝ→ℝ$.
A homomorphism is more than that, because it does not only map numbers / elements of sets, but it connects two groups. And as you already stated in your Question: A group is a set with an operation $(G,\star)$. Therefore a mapping between two groups should be more than a mapping between two sets, right?
So the 'natural' thing to do, is to connect these two groups $(G,\star)$ and $(G',\cdot)$ in such a way, that it does not mess with the operation. Why? Because it would be a useless/random mapping. Keep in mind that mathematicians love structure - especially in algebra.
So what is 'not messing up everything'? It is the preservation of the only thing interesting that groups have, that sets don't have - the operation. So the mapping would read: $$ Φ:(G,\star)→(G',\cdot), \text{ such that } Φ(x\star y) = Φ(x)\cdot Φ(y)$$
In words this mapping tells you, that it does not matter if you first multiply two elements of $G$ and than map to $G'$ or if you multiply the mapped elements (in $G'$).
This mapping, that does not mess up, gives us, as it connects two groups, more structure. And, as I have mentioned above, mathematicians love structure - so they give that kind of mapping the name homomorphism.
If you like to draw diagrams, you can look at the following: $$ \begin{array}{ccc} G×G & \overset{\star}{→} & G \\ | & & | \\ Φ & & Φ \\ \downarrow & & \downarrow \\ G'xG' & \overset{\cdot}{→} & G' \\ \end{array}$$
Remark: You asked why not $Φ(x\star y) = x\cdotΦ(y)$. Remember how a group operation '$\cdot$' is defined: It is a mapping $\cdot:G'×G'→G'; (x,y)↦x\cdot y$. Hence, the expression $x\cdotΦ(y)$ is not well-defined if $G\not\subset G'$.
Now why are homomorphisms useful? We just defined them as 'not to mess everything up', or with other words 'preserve operations'.
Example: Homomorphisms preserve the identity element.
Let $e_G$ be the identity element of $G$, and $e_{G'}$ be the identity of $G'$. Then it is: \begin{align*} Φ(e_G) &= Φ(e_G\star e_G) \\ &=Φ(e_G)\cdot Φ(e_G) \end{align*} So we have: \begin{align*} e_{G'}\starΦ(e_G) =¹\ Φ(e_G) =\ Φ(e_G)\cdot Φ(e_G) \\ \end{align*} ¹ Since $e_{G'}$ is the identity element of $G'$.
And by cancellation law (of groups) we get: $$ e_{G'} = Φ(e_G). $$
In a nutshell you can say, that if group $G$ has a cool feature, and you can find / construct a homomorphism from $G$ to $G'$, then $G'$ has that cool feature as well. Or the other way round, if you want to proof a feature of group $G'$ and you have a group $G$ that has this feature - try to construct a homomorphism.