The primary purpose of dog socks is to provide traction so that your dog will not slip around on hardwood floors. However, an added benefit is that many socks also protect the floor surface from getting scratched by a dog’s claws.
However, this will not work if you let your dog’s nails grow too long because they will poke out through the socks. The material used in many socks is not that thick and long nails could produce through the fabric.