The reason a habit survives the loss of its reward
The reward that started the habit can vanish entirely, and the habit continues. What was once a means to an end has become the end itself.
Repetition outlives reinforcement. The habit that was built by a reward no longer needs it, and no longer checks.