In alopecia areata, they found that some genes which attract killer immune cells are overexpressed in hair follicles. The immune cells attack the follicles and lead to rapid hair loss. In narcolepsy, the body's immune system attacks cells responsible for creating a certain hormone (hypocretin) in people's brains that's responsible for keeping people awake. The lack of hypocretin causes people to randomly and unexpectedly fall asleep.
It's amazing how many health problems are falling under the autoimmune category.