That's because of organizations like ASPCA, Humane Society, PETA, Greenpeace, etc. They monitor movies/TV, circuses, SeaWorld, zoos, rodeos, farm animals, research animals, and so on. If you buy some shampoo, it might have something like "free from animal testing" on it.
I guess it is easier to use CGI too, although it's more expensive. Like those 2 recent "live action"
Lion King movies, they couldn't train a group of real animals to do any of that stuff.