A bagel is dough that gets boiled before it bakes, and the nuts ride along inside. Crushing pecans with the flat of a knife leaves shards large enough to survive kneading, and the sugared water does the double job of setting the crust and sweetening the surface without extra dough sugar.