bcoz iron displaces copper and form the solution iron sulfide
Explanation:
when we dip iron nail in copper sulfate solution,then iron starts reacting with the solution and due to displacement reaction between them iron is stronger metal than copper so it displaces copper and form iron sulfide: