Is it because heavy weed smokers also tend to be sedentary and out of shape or because the weed itself is causing heart failure?
What you seem to be asking is this: is it the weed, or is it the person's health. The study accounts for that, and is able to determine that there's a higher risk when people are consumers of marijuana, all other factors accounted for.