Reik, you are correct but not fully understanding how the battery works.
If you disconnect the battery, the circuit works as a simple voltage stabilizer. As the output reaches 6.8V + 0.7V (the base-emitter voltage of T1) the transistor starts to conduct and it pulls the ADJ pin of the LM317 nearer to ground. This in turn drops the output voltage and the Zener stops conducting. In reality what happens is the circuit finds a balance where ZD is just conducting enough to keep enough voltage to keep itself conducting - in other words it stabilizes the output.
When the battery is attached something different happens. Unless fully charged, the battery voltage will LESS than ZD so the transistor does not conduct and essentially does nothing. Now the voltage is set only by the adjustment of VR. The LM317 voltage rises to whatever level VR lets it reach and current is allowed to flow through the battery to charge it. As the battery reaches full charge, in other words near to ZD+Vbe the Zener and transistor start to conduct again and prevent the voltage rising any further and overcharging.
It might help to think of it this way: The battery drags the voltage down as it draws charge, as it fills up, ZD and T1 put the brakes on to prevent it overfilling.
Brian.