How can CBD oil help alleviate pain and inflammation in the body?

How can CBD oil help alleviate pain and inflammation in the body?