What is a rust preventive used for?

A rust preventive is used to isolate the metal from its environment (water, oxygen) thanks to a protection film.

Is this useful ?