The intermolecular attraction of molecules for a real gas is an important aspect
If two molecules comes close to each other during the random moment then, there is a chance that the gases may liquify, deviate from ideal gas equation and effect the critical value, all these ideas arose due to vanderwaals equation.