If a team is larger in number the producers may decide to shipwreck two castaways who must join the same team in order for the tribe with the lower number to stand a chance in the final week.
When a team has more participants, the producers might decide to merge two smaller groups of castaways into one team, giving the tribe with fewer members a chance to succeed in the final week.