The period of a simple pendulum depends only on its length (T = 2π√(L/g)) and is independent of mass. Changing the pendulum bob's mass doesn't affect the period, so the clock continues to keep correct time. The pendulum's timekeeping is based on length and gravity, not mass.