The exact cause of inguinal hernias in children is not known. However, it is thought to be due to a weakness in the abdominal wall that is present from birth.