What transfer case is in the 2018? Mine only engages when there's a slip, so gas mileage isn't affected at all, unless it kicks in.
It could have either case. The year doesn't affect what case is available (except that 5th gens have newer versions of the transfer cases)
There are two different engagements. One separates engine power from the front driveshaft, the other separates the wheels from the front driveshaft. When the selector is in 2wd
both of the engagements are disconnected so if you stuck a camera under the truck and went for a drive you would see that the front driveshaft is not turning.
The front axle disengagement mechanism is a splined interface and not a clutch, this allows it to be small and lightweight but cannot be rapidly and smoothly pulsed on and off. So when you shift into 4-Auto the front axle mechanism engages. This causes the movement of the front wheels to feed back into the front differential and turn the front driveshaft and the bottom of the transfer case even when no engine power is being delivered. These parts not only experience friction at the gear interfaces and bearings, they also are spinning at 3x (well, 3.21 or 3.55 or 3.92x) the speed that the wheels are turning and spinning up and down that rotating mass takes energy. Since the truck has a big engine and a low range transfer case these are dramatically heavier parts than their counterparts would be in something like a Subaru that's spinning all 4 wheels all the time with little 1" diameter shafts and 5" ring gears.
When you engage 4-Auto the front axle engages, and then the "auto" part just pulses the clutch pack in the transfer case because that can be done very quickly and the driveshaft, ring and pinion, all those heavy bits are already locked in to the front wheels.
That is why 4-auto necessarily affects fuel mileage, braking distance and NVH (and why there's a 2wd mode in the first place).