Why did Cronus swallow his children, according to Hesiod?
Because Earth (Gaia) and Heaven (Uranus) had foretold that he would be overthrown by one of his own children. In Hesiod's Theogony, Cronus swallows each child Rhea bears: Hestia, Demeter, Hera, Hades and Poseidon. When Zeus is born, Rhea hides him in Crete and gives Cronus a stone wrapped in swaddling clothes, which he swallows. Grown up, Zeus makes his father vomit up his siblings and defeats him.
The Theogony, from the 8th or 7th century BC, tells the origin of the Greek gods: "verily at the first Chaos came to be, but next wide-bosomed Earth", and then Eros. From Earth comes Heaven, and from the two the Titans.
Uranus kept his children hidden in Earth's body, and Cronus, the youngest Titan, castrates him with a sickle his mother gives him. So Cronus repeats his father's crime: to keep his power, he swallows his own offspring.
Rhea, in despair, asks her parents for advice, and they send her to Crete. The infant Zeus grows up in hiding, and "as the years rolled on, great Cronos the wily was beguiled by the deep suggestions of Earth, and brought up again his offspring", vomiting first the stone, which Zeus set up at Delphi.
Then comes the Titanomachy, the ten-year war between the Olympian gods and the Titans, which ends with the Titans shut in Tartarus. The myth inspired Goya's painting "Saturn Devouring His Son".