The 96 to 97 year changeover didn't have much change mechanically. 98 was a big year for changes to the Ranger. They got revised exterior styling, new front suspension designs, and the regular cab trucks gained some length in the cab. I'm not sure how those changes affected curb weight if any. Google says the lightest Rangers got heavier, and the heaviest Rangers got lighter between 97 and 98. Sounds like it really depends on the drivetrain/cab/bed type.
The 3.0 also got a new intake manifold beginning in 98, which increased HP and tq. Typically increases in power comer from burning more fuel, so that's a possibility as well.
One other thought, and I'm not positive but in general it seems like the older trucks had numerically lower axle ratios. It wasn't uncommon to see Rangers with 3.27 or 3.55 gears. Seems like most of the 98+ trucks had 3.73s or 4.10s, which would result in higher RPMs while cruising, which of course nets worse fuel economy.
They also update fuel economy testing standards occasionally, so that can make it seem like older models get better fuel economy, when in reality the testing wasn't accurate for real world situations. I don't know if this occurred in the time frame you're referencing or not, but it could explain some of the difference in ratings.