Pain is necessary in order to live.
This is obvious if you think about it: a broken leg would not heal if we felt no pain and continued to walk on it. A hand on a hot plate would melt in minutes if we felt nothing wrong.
Pain is probably the only reason you’re alive. Therefore, pain is necessary for life.