EU bureaucrats were meddling in such arcane issues as the shape of cucumbers. Anything not up to a certain standard had to be tossed. This is one reason why the gun laws are so strict. Bureaucrats want to live.
I am not up to date with the shape of cucumbers, but the previous joke was the EU regulating how bendy the bananas can be.
A charismatic comedian can paint a picture of an EU drone in Brussels spending sleepless nights worrying about what way the bananas Europeans put into their mouths bend, but the real reason for this regulation was much simpler - good old protectionism.
France, Spain, UK and other European countries either control or have significant interest in banana production and distribution. Their bananas have different bend than Latin American ones and the regulation (now long scrapped) was to put Latin American bananas into disadvantage in European market.
There was a method to what is described as madness.