Habitual Behavior Is Goal-Driven