A groin, or inguinal, hernia occurs because of a defect or weakness in the lower part of the abdominal muscles.