If a CDI needle is deflected to the right, why is the aircraft off track to the left?
The CDI indicates your desired course. The white circle in the center of the instrument represents your position. If the desired course is to the right of your position, you need to move to your right to rejoin your course.