A dog is an opportunist when it comes to finding food and will have no sense of right or wrong. If food has been left around where a dog can get at it, the owner may want to reprimand the animal, but it is not the fault of the dog, it is human error that has allowed the dog to take the food and eat it.
I have often seen dogs heading towards an abandoned burger or discarded remains of a sandwich. A sensible owner will pull the dog back and quickly move on. Unless the dog is off the leash it should not have the opportunity to eat anything that humans have thrown away.