It may be that she misses her boyfriend and is lonely, so it won't be so annoying to have a child with her. She thinks about it day and night, so she dreams of having a baby.
And the duke of Zhou dreamed of having children's explanation is:
Dreams of having children come true, lucky strike.