your daughter most likely had dermoid cyst
which had been excised.
There is nothing to worry as it is a benign disease with almost nil chances of recurrence. About the scar, it will gradually fade as the child grows and may be almost invisible as the age advances. you can also use ointments
which prevent scar formation.