The alleged reason why Erin Patterson invited her in-laws over for a poisonous beef Wellington has been revealed in court.