Most of the novice pilots on the early missions would command the later missions. In this way, Project Gemini built up spaceflight experience for the pool of astronauts who would be chosen to fly the Apollo lunar missions.
Project Gemini helped recruit experienced people for which upcoming lunar missions?
Apollo