The cause of inguinal hernias depends on the type of inguinal hernia. Indirect inguinal hernias. A defect in the abdominal wall that is present at birth causes an indirect inguinal hernia. During the development of the fetus in the womb, the lining of the abdominal cavity forms and extends into the inguinal canal.