The upper sine wave has a lower frequency than the middle sine wave. When these two functions are added together, the result is the bottom sine wave. You can see where the first two waves interfered constructively as well as where they interfered destructively. The maxima in the lower wave are the beats which we can hear. The beats are also periodic, like the individual sine waves.
Windows Original.