They have done the same with many products, including coffee.
I can remember a time when the ‘large’ can of coffee was 3-pounds (48 ounces). Over the years, they have removed a few ounces, while keeping the container about the same size. Now, only a few stores have a large can in the 34 ounce range, but many have their largest can at around 27 ounces.
With other foods, I have noticed significantly more liquid before getting to the actual content.
Try finding an actual pound of coffee. The only way to know the actual cost is to keep track of the unit price. Although I noticed CVS has a cute trick. Instead of listing the unit price for coffee by the pound , they now list it by the ounce.