She said Thompson lied about where Destiny was after she had died, telling some people she was with friends and others that she was in the care of the Department for Child Protection because she had post-natal depression.
Destiny was born six weeks premature in Perth, but was healthy and moved to Geraldton, 424km from Perth, with her mother, who had five other children, two of whom lived with her.
"Destiny was not a planned or wanted baby," Barbagallo said.
Given the fact that Thompson had other children, she should have known how to adequately care for an infant, the prosecutor said.
Instead Thompson failed to feed the baby properly and would leave the bottle with Destiny even though she could not feed herself.
Barbagallo said Thompson also began selling toys and clothes Destiny had not yet grown into.
"She was intending to kill Destiny," Barbagallo said.
Barbagallo said Destiny's cause of death could not be determined because of the
decomposition of the body.
Defence counsel Helen Prince said all of Thompson's relationships had been marred by domestic violence and the baby's father was Thompson's meth dealer who wanted nothing to do with them.
She agreed the pregnancy was unplanned, but said once Destiny was born, her mother did love her and Thompson's life fell apart when the baby died.
"This case is a tragedy," she said.
Prince said Thompson was locked in a custody battle over her two other daughters and when "tragedy struck" with Destiny, she was worried about being blamed and losing them.
She said her client was aware she was not a good mother, but moral blame was different to criminal guilt.
Prince said when police asked Thompson why she had named her daughter Destiny, she replied: "Because she was destined to be here."