Fuel fraction (usually considered in terms of fuel/mass with full internal fuel and no weapons) is a big factor in range, of course. But there's also engine cycle, and the degree to which you need to use afterburning. The F-22 has near-pure-jet engines (bad) but does not need A/B except to accelerate or for extreme maneuver (good).
Since the Super Hornet is basically a scale-up of the Hornet, with about the same internal fuel fraction and slightly lower-bypass engines, the main reason that the range is better is indeed its external tanks. Both the Classic and the Super can carry 480 USG tanks under the wings, but the Classic can only carry a 330 USG tank centerline and the Navy never wanted to mix tanks.
Finally, general design and configuration makes a difference in drag with big external loads. Supposedly, for example, the Typhoon is reasonably efficient and flies well with a large load, which gives it a better range than (say) an F-16.