The molecules take up space. Put another way, within a certain distance there is a significant repulsive force between the molecules.
How did van der Waals deal with this?