It is a pathology
Sebaceous cysts are accumulations of skin oil due to failure of ducts to get it to the outside skin.
Body reacts as if a foreign material and walls it off with fibrous tissue forming a pseudocyst. This requires opening and drainage, to include the gland tissue causing it. May become infected and require bigger surgery. Not cosmetic.