The end play in the distributor allows the shaft to move up and down while the engine is running. This lets the timing change because the gears are cut on a slant, so as the shaft moves, it turns slightly. You can see the fluctuation in the timing when you check it with a timing light. You can try an experiment. Check it before and after you shim it to the correct end play.