The tail is the spine, and so it's a bit confused to say docking would be for preventing spine issues. Tails which screw, turn up, or in, are spinal issues. This is spelt out in the breed standard.
While it should be rare, if the puppy was born with a badly inverted tail docking it immediately...