Puppies like to chew anything they can, even electrical cords! If your puppy is chewing on an electrical cord, they can compromise the insulative coating of the wire and make contact with the conductive materials, resulting in an electric shock to the mouth.
Puppies chew for a variety of reasons.