No two clocks, no matter how precise, will keep the same time (especially if you are measuring time down to the nanosecond). Assuming two clocks are synchronized at a point in time, drift is the difference in time between the two clocks after the initial time setting.
In mechanical clocks, drift is caused by changes in temperature, poor workmanship, friction, etc. Drift in mechanical clocks is addressed typically with a compensating device. For example, you can correct the amount of drift in a grandfather clock by adjusting the length of the pendulum.
Most electronic watches and internal computer clocks use a quartz crystal oscillator. While quartz clocks are significantly more accurate than mechanical clocks, they are still subject to drift caused by changes in temperature, fluctuations in the current, degradation of the crystal, etc. You could compensate for drift by varying the voltage or regulating the temperature, but the cost would be prohibitive for most applications. So, the solution for drift, especially for computers, is to periodically synchronize and reset the clock with an external time source.
