During pregnancy, the abdomen has to make room for growing baby, which means that the abdominal muscles have to stretch.
The pressure of the growing uterus as well as hormonal effects on the tissue can cause the linea alba (connective tissue) between the muscles to separate.