What traits were terriers historically developed for?

Answer

Tenacious, high-energy hunting

Terriers were developed to be tenacious and high-energy hunters, historically used for going to ground after vermin.

What traits were terriers historically developed for?
breedTerriercalm