Team balance
From TF2 Wiki
Team Balance is an gameplay feature that automatically balances teams that have been made uneven (for example, by a number of players disconnecting on one side) by switching one or more players at random from the side with the most players. When team balance is initated, a timer appears informing the players how much time is left until the switch is made.
Though the balancing process is necessary one, many players have voiced disapproval at being switched to the losing side shortly before the end of a match, or while playing on a team comprised of people with whom he is in charge or regular communication. In such a situation, the switched player must try to arrange a manual switch with a member of the opposing team.

