Why is research in astronomy considered science, but studying astrology regarded as pseudoscience?

Why is research in astronomy considered science, but studying astrology regarded as pseudoscience?