Portion sizes are probably a factor. Anecdotally they're a lot bigger than they used to be. Calories are cheaper to produce and restaurants put bigger plates in front of their patrons because it's a competitive advantage to serve bigger meals.
If I had to guess the big culprits are the increases in portion size and availability of cheap calories (corn syrup, oils, flours, etc.). You don't have to infer any major changes in individual behavior - people still finish what's on their plates, and still gravitate toward brightly colored boxes of junk in the supermarket (which are a higher % of shelf space than they used to be).
if all you did was eat fat calories, you would lose a ton of weight, because ketone bodies cannot be stored inside fat cells, only glucose fructose, etc. can.
If all you did was eat protein calories, then yes, you could gain weight via gluconeogenesis (conversion of protein to glucose, again for fat storage and energy needs), although it would probably take more calories than carb calories to do so (since conversion likely results in molecular and energy losses); there is no such biochemistry available for ketones from fat