The term $-an^2/V^2$ is the reduction of pressure due to attractive or cohesive forces between molecules. This is most easily seen by writing the equation as
$\displaystyle p_\text{obs}= \frac{nRT}{V-b}-\frac{an^2}{V^2}$ .
While the constants $a$ and $b$ are considered to be empirical they do have a physical basis. As you mention $b$ accounts for the finite volume of the molecules and $a$ for the attractive force between molecules.
In the centre of the gas these attractive forces are the same in every direction and so cancel out, however, as close to the boundary as it is possible to go the forces act predominately inwards towards the bulk of the gas, rather as happens in capilliary action or surface tension. If the force between adjacent molecules is resolved into components one will lie along the boundary and the other at right angles pointing inwards. Thus we can imagine over a long enough period of time a steady force close to the boundary and acting inwards. Thus molecules on reaching the surface are deflected both by the surface and by this inwards force.
The size of the force will be proportional to the product of the number of molecules /unit area and the size of the inward force. Both of these will be be proportional to the density ($Nm/V$) or equivalently molar concentration. The reduction in pressure can thus be written as $-a(n/V)^2$ where $a$ is a positive constant that depends on the gas and is determined only by experiment.