Its function is to seat the strings over the curved surface of the nut prior to locking. In rare instances, it may also serve the same purpose as a string tree.
It is necessary for a string to sit still in its nut slot. A string tree is placed on a headstock. Behind the nut, the string travels to its tuner. It is important to ensure that the string itself will sit tight in its nut slot.