I would bet that 95% of that improvement or more was due to the exercise.
Your anecdote is common: People start taking Vitamin D or fish oil as part of a bigger plan to have a healthier lifestyle and then they attribute success to the pills, not the lifestyle changes.