How does CBD oil help with pain relief in the body?

How does CBD oil help with pain relief in the body?