It was taught him by his masters. Medicatation goes back millennia. It was improved from when it started probably from some religious belief. The occult side is irrelevant in my view.