What is "scratch"?
To create something from scratch is to make it without any ingredients or materials prepared ahead of time. The scratch in from scratch originally referred to the starting line of a race "scratched" into the ground, from which all runners would be starting without a head start.