Descending and climbing again will take a lot of fuel, jets are only efficient at high altitude. Plus of course the extra takeoff and landing adding cycles to the airframe.
Part of that is because cargo usually runs on old and inefficient planes, so they really benefit from “intermediate stop operations”. Carrying all that extra fuel for a direct long-haul adds 10-15% in fuel costs.