Welcome to HCM,
Its difficult to precisely say without examining.
could be due to trauma leading to hematoma
i.e infection of hair follicle or pustule etc..
As you are consulting your doctor it will help in definite diagnosis.
Till then i advise you for hot fermentation to local area, if its heamatoma it will subside with this.