Often, it's because they are at risk of losing the baby.
A common reason is because of an incompetent cervix
, where the cervix prematurely opens and could allow baby to descent too early down the birth canal. Other causes could be the connection of the placenta
to the uterus
or it's location. There are many more reasons, but these are a couple of common ones.