Because in order for something to be a direct variation, it can have no 'b' or y-intercept. In this problem, you can see that it follows the form of y=mx. It has no 'b' term. Therefore, it is a direct variation.
If it were an indirect variation, i would have looked something like this...