The sentence that corrects the faulty parallelism in the sentence is, the first one.
Charlie is taking a dance class because he has to rather than because he enjoys it.
This makes it clear that Charlie is required to take the dance class. He is not taking it because he enjoys dancing. We need to include a transition word, like because, to separate the different ideas.