When you are manually controlling the car, you steer it to go in a straight line. You can see when it's not going straight and you correct it without thinking about it. But when it is steering itself, it needs feedback from somewhere to know if it is going straight, and that is what the encoders provide.