why does my tooth hurt

A dental abscess is caused by the buildup of bacteria inside the pulp chamber that becomes infected.

This infection then tries to drain itself out of the very tip of the tooth root. The pressure from the draining infection causes a pain that can become severe with swelling if left untreated