So they were used for testing ... testing for what?
Animals are used for lots of things. It could be a dietary/nutritional study, psychological and behavioral study, drug development, etc.
Many important drugs we take were developed through animal research. And if your own pet dog or cat is sick, and a vet prescribes a drug, surgery, or other therapy, that will have been tested/developed using animals, too.