I've never understood it either, and always wondered if it was some American thing? Do they have a favourite lawyer like I have a favourite barber?
Nowadays only the very rich can claim to have a "family lawyer".
If we were very wealthy, perhaps we'd have a legal matter for him every month instead of every year or two, but that's plenty of time to build up a relationship. Similar to having a family doctor.