Why do dogs have pads on their paws?

Bones would be injured if dogs walked on them with no padding.