Wrapping in foil captures the meat's fat and juices, so they can be reabsorbed once the meat is taken off the smoker to rest, creating a braising effect.