It is probably because in a dog's back the spinous process of the vertebrae is proud of the surrounding ribs and muscle, so what they lie on their backs (on a hard surface) this is painful. In humans the spinous process is generally protected by ribs and muscle on either side of the spine. It is the lumpy bits you feel when you run your hand down someone's back.