This is sometimes caused by spots of blood in the egg which darken during cooking. It has also been suggested that the reason for this is that the iron in the blood reacts with sulfur to form iron sulfide which is black. However, I could find any scientific articles which confirm this reaction.