Your body stores calories you eat, and it's really good at it. If you eat too much of anything (that contains more calories than the calories required to digest it), you will gain weight. Eat too much fried chicken, gain weight. Eat too many oranges, gain weight. Eat too many beans, gain weight. You can probably gain weight from eating too much broccoli, although I'd get sick of broccoli before that happened.