Consider that for each game, each team has the same probability of winning the game, that is, a probability of 0.5 in each game.
For a sweep, the probability for both teams is given by the product of the probability in each game. Taking into account that a sweep if for the first four games, you have:
P = (0.5)(0.5)(0.5)(0.5) = 0.0625
Hence, the probability for a World Series sweep is 0.025, which is equivalent to the 6.25%.