Here's why:
* Density is defined as mass per unit volume.
* Mass is directly related to the number of molecules (more molecules, more mass).
* Volume is the space occupied by those molecules.
Therefore, if the number of molecules in a given volume increases, the mass increases while the volume stays the same, leading to a higher density.