How can CBD oil help with pain and inflammation?

How can CBD oil help with pain and inflammation?