Each Pokémon that is assigned as Buddy has specific amount of kilometers to be walked after which Trainer is rewarded with a candy.