Origin of the chakra system