Typically the name comes from the mesh itself. So if you had a material called “rock” and another called “grass” it would then create two materials with those same names. If you didn’t apply a material sometimes it’ll just create one called “default material” or something along those lines.