Density measures how tightly a technology packs bits. It comes down to cell size: the smaller each memory cell, the more fit on a chip, and the cheaper each bit becomes.
Comparing the two kinds of RAM:
- SRAM: 6 transistors per bit. Low density, high cost per bit.
- DRAM: 1 transistor and 1 capacitor per bit. High density, low cost per bit.
That single fact explains a lot of computer design. Main memory, measured in gigabytes, has to be cheap, so it's DRAM. Caches, measured in kilobytes or megabytes, have to be fast, so they're SRAM. Density and speed pull in opposite directions, and systems use both.
Among non-volatile memories, flash won over EEPROM for the same reason: block erasing allows smaller cells, so flash is much denser.