Night came, so the children went home.

Literal

Night [subj-が] came-[because-ので] children [topic-は] house [to-に] returned.

夜がやってくる is a slightly more dramatic way to say 夜になる — やって来る adds the sense of motion/agency ('comes over'). Useful for narrative emphasis on the temporal transition.