Generally, the nut will loosen due to some other reasons such as vibration during use. In order to prevent this phenomenon, a self-locking nut was invented.
The function of self-locking nut is mainly to prevent loosening and vibration. For special occasions.
Lock nuts and self-locking nuts are a concept. Nuts with self-locking function are called lock nuts. There are related standards for the screw-in torque and screw-out torque, please refer to the mechanical design manual or the national nut standard.