Note that the fact "Lack of exercise kills roughly as many as smoking" says almost nothing about the danger of smoking compared to lack of exercise, unless you happen to know the rates of each.
But it does say some about where we should be focusing our marginal effort in terms of encouraging/discouraging behaviors for optimal public health. How much of a difference we can make in each is the other piece missing, but that would involve looking at specific proposed interventions.