It's not good!
Most likely scenarios are infection from decayed tooth that abscessed and the infection is trying to escape to the outside of your gums, or..
..A gum infection from long standing calculus and periodontal (gum) disease. There are other possibilities. Whatever it is, it could be dangerous, will not get better on its own and needs immediate attention. See your dentist asap for diagnosis and treatment.