The problem with ballscrew is that the longer you need, the thicker it has to be, or the slower you need to drive it (otherwise it whips).

Rack and pinion doesn't have problems with length (and if you need it longer, you can "just" bolt on another length).