How does CBD oil help manage pain and inflammation?

How does CBD oil help manage pain and inflammation?