The gunk on your scalp is likely sebum. It's caused by excessive production of oils from your scalp's sebaceous glands.