Graham crackers were invented by a Presbyterian minister named Sylvester Graham, who was convinced that masturbation was not only a sin, but that it could cause health issues like epilepsy and spinal disease (none of which is true, obviously), His views would become the Graham Diet, and he created Graham bread, which is bread made with unsifted flour. This then turned into the Graham cracker. So, you’d eat the graham cracker and it would suppress your “urges.”
Why crackers? The minister used pseudo science to come up with the idea that meat and fat made people, well, hornier. Thus, he preached an all-vegetarian diet free of refined flour, and he preferred unsifted flour.
There have been some disputes over whether he actually created the cracker or was just an inspiration. There are some sources that claim he created the cracker in 1829, and others say he did so in 1882, but he had actually died 31 years prior. Either way, he was most likely a huge influence.
View more information: https://www.distractify.com/p/why-were-graham-crackers-invented