Hernia repair is necessary to prevent complications such as strangulation, where the blood supply to the herniated tissue is cut off. This can lead to tissue death and severe health issues. Surgical repair also alleviates symptoms like pain and discomfort.