Muscle relaxers for pelvic pain?

I have chronic pelvic pain and the only thing that helps me is the muscle relaxer cyclobenzaprine. Does anyone possibly know why? Apparently you’re not supposed to take it more than a couple weeks and it’s more so for sprains or strains but it’s the only thing that helps.