Countries can only qualify two people for individual events in swimming, three in track&field, etc.
Since gymnastics has a team component and you are bringing at least five gymnasts anyway, they can afford to wait until the Olympic preliminaries to make the cut down to two gymnasts for the individual competition.