A lot of people who take cannabis for pain or anxiety take CBD [1] rather than the raw THC-containing plant. There's almost no associated high, so it sounds like you haven't tried it. The abuse of medical marijuana laws to circumvent prohibitions on recreational use has confused the issue, but people shouldn't equate the substances that get consumed recreationally with the much more processed and specific substances that get used medicinally.
Sorry to pick on you, but people should realize that if all they want to do is try cannabis for pain management, they shouldn't let a dislike for the recreational effects deter them because the two can absolutely be separated.
FWIW, I manage my pain with meditation techniques and it's the only form of pain management that I recommend whole-heartedly, so I'm not recommending anyone try CBD. But I know people who take CBD for pain and I think people should, at least, understand how cannabis is used medicinally before saying negative things about it.
[1] https://en.wikipedia.org/wiki/Cannabidiol