We learn about their temperature, brightness, and what they're made of. This helps us understand the universe better.