Codec is an amalgam of the words compression & decompression. Compression is the process of reducing bandwidth and storage consumption.
Because each frame of recorded video contains many of the pixels in the previous frame, codecs compress video by only recording the pixels that changed between frames, thereby reducing bandwidth consumption and processing power.