As I recall, somewhere in the middling dark ages there was a real problem with ergot on wheat which caused "St. Vitus Dance". People just up and off and danced, neglecting all their tasks. This was frowned on.So, instead of forbidding people to eat wheat, they forbid them to dance.
ET