Answer:
A cosmologist studies the cosmos. They try to understand where it originated, what it could be composed of, and why it exists.
An astrologist studies the effect that celestial bodies in the cosmos have on earth, its inhabitants and human affairs.