It still seems purely disingenuous to package them deceptively to appear to be the same quantity.
It's on us though. They're lying to us to get our money, our labor, our consent. We let them.
Why?
The varying of quantities in the same sized container is not the problem and is certainly not illogical. The problem is when we allow marketing departments to lie/cheat/fool the product onto a different portion of the demand curve instead of letting the $/amount naturally flow back when price decreases or when it makes sense to switch to cheaper containers.