I believe it follows the same reason some people feel the NEED get married; because they're pregnant.
I think she's still with him because he IS the kid's father afterall. Maybe she feels thats what needs to happen.