May I offer a simplified explanation.....
When you lift off the throttle, the forces in the drivetrain reverse. In other words, the engine was the power supply, now the inertia of the truck is driving the wheels. All power for rotation is from the wheels into the drivetrain. Yes, everything keeps spinning, but things are slowing down. The engine is absorbing the energy. As you lift off the throttle, the fuel supply to the engine is reduced.
Do you remember the old friction drive toy cars. The ones that you would rev up by stroking them on the floor, then let go........ Same principle.