During development, the human midgut undergoes a rapid phase of growth in which the loop of midgut herniates outside of the abdominal cavity of the fetus and protrudes into the umbilical cord.
Later in development, the fetus's body catches up in size relative to the midgut and creates adequate room in the abdominal cavity for the entirety of the midgut to reside.