Analysis of these lines determines the chemical composition of a star. For an explanation of why the lines of calcium--rather than hydrogen--dominate the solar spectrum, go to "Analysis of absorption Lines" in Spectra, from the University of Illinois (the other sections are interesting, too).