Perhaps they (the TSA) thought if they handled your cookies individually you would decide you no longer wanted them and leave them at the checkpoint

Or just by individually screening them, a few would get 'lost' in the machine and you wouldn't notice.