HBM is less dense at a water scale than DDR because of all the vias, but each memory but is as dense or denser.

You make HBM instead of DDR and the number of bits you're making goes down.

It's really that simple.