The typical factory lube is a product at least similar to cosmoline. Watch the video at the Campy chain factory. The chains go through a bath of heated lube with a low viscosity that turns into the sticky gunk as it cools. It's fine if you want a dirty drive train. I remove the stuff and apply my own wax based liquid lube from day one.
The new SRAM AXS chains come with a light oil on them, not the sticky stuff. I remove that too.