When is there 163 games in a baseball season?

When, after 162 games, two teams are tied for the division lead, or for the wildcard spot, those two teams, and only those two teams, play a one-game "playoff" to determine which team wins the division or the wildcard spot. It happens less often than you might think.