Dogs, like kids, don't know what you don't teach them.
Imagine this: You're in a public place (say, a library) and there's a kid running around, climbing on things, and yelling or screaming. The caretake is either not in sight, or following the child around at a much slower pace, occasionally saying things like "Billy, no, come here, you can't do that here, Billy, come on. You're in so much trouble, mister, we're going to have a talk."
Now imagine a dog doing it.