What is this black material in my attic?
That material is most likely grit that came off the shingles of the roof. It could have gotten there during a roof replacement when old shingles were removed and roof sheathing was also replaced. 

If the material is localized in just one area it is possible it got there even from the original construction if shingles were piled and opened on the roof before all the sheathing was installed.