The compressor creates air pressure in the print head, which is especially useful in dusty or aggressive environments.
The printer is thus better protected and its lifetime is extended.
The compressor is part of the printer and is also powered from the printer.