I'm sure it's luck as much as anything. And having picked agreeable clients (mainly) ...
Once I reckoned that you should pick an accountant like a favourite car mechanic. When you've found them, stick with them.
Now as a bookkeeper, I turn it on its head: once you've found a client you really get on with, do everything to keep them.