The iron is directly toxic to moss at concentrations that grass tolerates, and it also acidifies the immediate surface slightly, which moss dislikes. The blackening seen within hours is the moss dying. Iron simultaneously greens the grass, which is why lawn moss killers are typically ferrous sulfate based and give both effects from one application.