It could be an abscess/ boil. I had a recurrent boil on my gum line above my front teeth and went to the dentist. I wound up getting two root canals.
It may not mean that you, personally, need a root canal. But it is an indication that something is wrong with your teeth, so you should get to the dentist as soon as possible.