States of matter

At very high pressure, why can a real gas have a density greater than that predicted by treating it as ideal at the same temperature and pressure?