Kings and emperors always wanted to know the future, so they had court astrologers. Maybe it was a government project. Sorta like the Manhattan Project of its time...................
It could easily have been a sort of subversive project to undermine the then-current superstitions about planetary associations with deities.