How can CBD oil help with pain?

How can CBD oil help with pain?