How can CBD oil help alleviate pain and inflammation?

How can CBD oil help alleviate pain and inflammation?