Maybe, when Barney, a staunch professional guard dog, realized that he was relegated to guarding stuffed toys, his self respect caused him to react in such a way that he would never be forced into such a demeaning position again.
Or maybe he just mistook it for play time.