Why do umpires change that ball after it hits dirt?

Because it's dirty and could have marks and blemishes that affect the movement of the ball when it is pitched.