Virtual joints attach the robot to the world. They are not mandatory for a static robot which does not move. We need virtual joints when the base position of the arm is not fixed. For example, if a robot arm is fixed on a mobile robot, we should define a virtual joint with respect to the odometry frame (odom).
In the case of our robot, we are not creating virtual joints.