What were Scotties bred for?

What were Scotties bred for?
Scottish Terriers, often called Scotties, were originally bred for hunting vermin like rats and badgers. They have a strong prey drive and are quite fearless, which makes them effective hunters.