The study doesn’t imply that everyone who drinks diet soda, in whatever amounts, is going to gain weight. It obviously depends on a lot of other factors, such as body chemistry, metabolism, genetics, exercise or lack of, etc, etc.
Personally I think some folks just get a diet drink and decide to make up the calories (and then some) with food.