How did the star castor get its name?

Castor is one of the twin sons of Zeus and Leda along with Pollux the twins of the constellation Gemini.