When saving a group in Revit, the text “Same as group name” is special. Even if you have put in a file path or typed something else in that Filename area, if you then go in and type Same as group name, the resulting RVT group will still adopt the name of the group you have just saved.
This is just one example of ‘special text’ used in Revit dialogs.