I don’t disagree with you but couldn’t you make the same argument with alcohol? There are plenty of alcoholic drinks with colorful packaging that taste like candy.
It's different in that a child likely won't drink enough alcohol to be poisoned whereas just one or two delicious gummies would tranquilize an elephant.