To understand why, you need to know what CBD is. As you probably already know, CBD comes from the same plant as marijuana, which is hemp. This has led to a bad misconception about CBD, which is why the drug wasn't approved until 2018.
Even though CBD is found in marijuana, it doesn't have the bad effects that weed is known for. These are caused by the presence of THC, which you can think of as CBD's bad sister. It's why weed is so hard to stop using.