Discuss these with your dentist
A cavity underneath the gums on the tooth can harbor bacteria which will cause the gums to be edematous and inflamed in this area.
Periodontal disease and gingivitis can always to swelling as well.
There are also certain viruses and certain individuals who are pregnant may have swelling in their gingiva. When I’m doubt, I would visit your dentist for further evaluation.