When you keyframe, you determine what an object looks like at specific points in time, while algorithms fill the frames in between the keyframes. This technique is called in-betweening. The intermediate values between the keyframes are computed by interpolation.
Extrapolation is used to determine the behavior of a channel before the first or after the last keyframe—see Modifying Interpolation.