With animation, you are working essentially with a time-based script of composited images, which simply means that the images will change over time. With compositing, you are using images from different sources and layering them and generating a composited image.