Hard to tell from a photo, but coal that had been burned in a train engine can produce a residue that will read and appears to be magnetic. (At least that is what I have always been told). Yours looks to be one of those. Some refer to them as clinkers.