It shouldn't be surprising that different biowaste have different carbohydrate profiles. Most biowaste is a combination of cellulose, lignin, and hemicellulose (plus other stuff) but the weight fractions of these components can vary considerably from plant to plant and plant part to plant part.
A very quick look suggests that coffee grounds contain much less cellulose by weight than sawdust. Given that coffee grounds come from the pit/seed of the coffee fruit, and the protective function of the seed coat, this breakdown makes sense since lignins are tougher cross-linked polymers than linear, straight chain cellulose polymers. I would expect to find more lignin and less cellulose in tough protective plant structures like nut shells, seed coats, tree bark, etc.