why did I gain

Options
If I am not going over my recommended daily calorie intake, and going to the gym (mostly cardio), why did I gain weight?