My spontaneous guess is that "from scratch" means starting with a raw sketch like that made with the tip of the shoe in the sand... I would never apply the expression to cooking, though. "Scratch" sounds wrong there, somehow, except when you scratch (or scrape) the plate at the end of the meal.