While oxycodone addiction and oxycontin addiction is a serious problem, oxycodone does have legitimate medical use for treating physical pain. Chronic pain and acute pain cause significant anxiety. When a person is in pain, they worry about the pain never going away. So, while the intent was not to relieve anxiety but to treat pain, anxiety is also treated by helping with the underlying cause of the anxiety.