Here's why:
* Doppler Effect: The Doppler effect is a phenomenon where the frequency of waves changes as the source of the waves moves relative to an observer.
* Blueshift: When a light source is moving towards an observer, the light waves are compressed, resulting in a higher frequency. Since blue light has a higher frequency than red light, this shift is called "blueshift".
Key takeaway: Blueshift indicates that a star is moving towards us, while redshift indicates that a star is moving away from us.