The roasted aroma of peanut butter comes from proteins and fats that have been changed in the roasting, and they probably smell a bit like caramelized meat. Dogs have a natural instinct to seek out certain chemicals that signal a nutrient-rich food and peanut butter gives the smell of that.