PNG preserves its pixels through a sequence of reversible steps. Before compression, it can transform each row of image bytes so that the compressor has a more predictable pattern to work with. PNG calls that transformation a filter.
Source: [Dev.to](https://dev.to/morphio/what-pngs-row-filters-actually-do-53a8)