How does CBD oil help alleviate pain and what are its advantages?

How does CBD oil help alleviate pain and what are its advantages?