With astrology you can improve your stats, through spending star spirit points who you can obtain as example by star palace ruins, meditation or star spirit pills.

The astrology exist out realms, if you reach a certain level in astrology, then you need to upgrade your realm, so you need a realm pill.