Look up history of alternatives to breastfeeding. Cow/goat milk has been used as portion of various recipes, and I think cow milk is one of usual inputs in formula making, but it's not enough on its own and could get contaminated etc.
Not to mention other mammals have different micro and macro element needs than humans.
But formula is effectively a safer and more filling endpoint of improvements that started with animal milk and some other foods.