Because in this way only active forces can be considered. Active forces are those forces which doesn't arise in order to make the particle follow the constraints (these last are constraint forces). In the simple example I made in my previous post, active forces are those which make the particle move along the bar (horizontal forces) while constraint forces are those directed vertically, which prevent the mass point to escape the bar. Usually the constraint is still, or it moves in a specific, given way, so the problem is much simpler to solve if it's focalized in finding how the points move in virtual displacement only. But there are also theoretical reasons to focalize on those displacements only, which will be more clear whe you will study lagrangian mechanics.
--
lightarrow