Terrier is quite literally French for "burrow". They still work great with rats, farmers love these dogs.
My parents had a terrier when I was younger, and she loved it when it was time to mow the grass. She would be out there eating her fill of the field mice that got flushed out and just having a blast.