Agro produce regulations, probably. I had some produce confiscated once too. This is designed against various pests that could enter from overseas and from which local species have no protection, though I think it is futile because if they would get here they'd get here on cargo ship with thousand tons of apples, not in somebody's one apple.
Agreed. But I'd say the agro produce regulations, and sniffing the hand baggage of air passengers, are a bit similar thing for food hygiene as TSA checks are for air safety: an illusion that something is done.