This word originally meant simply learning. It was then applied in a special sense to mathematics. But the mathematici under the later Roman Empire became identified with astrologers.