Why does my tooth hurt after a root canal?

Why does my tooth hurt after a root canal?