That's just an implementation of RLE[0]. Very common in formats from the 80s. RLE was e.g. used in Amiga IFF ILBM compression.
0. https://en.wikipedia.org/wiki/Run-length_encoding