I think any animal would be startled if they started eating and a new object was covertly placed behind them... including humans. Cats aren't afraid of cucumbers, they're afraid of strange things in strange places.
Cucumbers (and zuccini etc) seem to work much better, probably because they remind them of snakes and other long animals.