Taking the question as asked, rather than the general version of it. There is also a quality change that the scan cannot see. Weight loss shifts fiber-type distribution toward Type I and improves mitochondrial density and insulin-stimulated glucose uptake per fiber — so the muscle you keep is metabolically better even though there is less of it. That does not make the loss irrelevant, but it explains why function often holds up better than the number suggests.
If somebody has the primary source to hand I would rather cite it than paraphrase it.