This lump is an abscess
formed most likely because of blocked and infected sweat gland
It becomes all right,once the pus comes out of it,as it has happened in you.
This is not the endometrial cyst
Endometrial cysts are formed in endometrium and inner lining of uterus is known as endometrium.