Great sages living in the forest were full of wisdom and knowledge including knowledge of Jyotish. The Kings would often seek them out for their wise counsel in times of trouble.