Many people use treats to train because it provides quick results. Of course dogs will do what you want when you want if there will always be something tasty to eat as a reward. But this shapes behavior wrongly. This causes the dog to think that it only needs to perform the job if there will be a treat backing it up. Most good trainers stand behind the method of having the praise following the job or command be the reward.