Many foods products trigger a search. I assume the machine looks at organic molecules as possible explosives. My daughter likes to travel with chocolate bars as gifts. Generally, the TSA helps themselves to a few bars and leaves their "thank you note" behind. It's seems a bit over the top when they open the bars, take a bite and put them back. (Yes, it has happened.)
The bigger problem though is when they rumage around, they don't bother repacking properly and anything the least bit fragile then gets broken by the airlines. I can't quite get my daughter to see just how expensive those bargain chocolate bars are...