Spectroscopy tells us many things including what things are made of. The dark lines in this spectrum of Aldebaran are made by the various elements in it. Each element has a unique set of lines which identifies it.