Collies have a rich history as herding dogs responsible for managing livestock on farms, which may have contributed to their protective instincts.