What is the purpose of phosphating treatment for forged steel gate valves?

Forged steel gate valves often undergo phosphating treatment during processing. So what is the role of this treatment?
Phosphating involves immersing the forged steel gate valve in a phosphating solution to deposit a dense and water-insoluble crystalline phosphate conversion film on its surface.
The purpose of phosphating is to prevent rust. The details are as follows:
1. Provide protection for the base metal to prevent it from being corroded to a certain extent.
2. Used as a primer before painting to improve the adhesion and corrosion resistance of the paint film layer.
3. Used for friction reduction and lubrication during metal cold working.