A hernia occurs when the inside layers of the abdominal muscle have weakened, resulting in a bulge or tear. An inguinal hernia occurs in the groin area.