It works the other way too though, it doesn't mean that we won't learn anything that will help humans.
Generally, human lives are prioritized over animal lives.
Firemen rescue humans from burning buildings first, animals secondary. There's a hierarchy, it works the same in medicine too.
Unfortunately, animal testing and research has given us some of the greatest medical advancements in history: https://hms.harvard.edu/research/animal-research/what-animal-research-has-given-us