Chicken mortality in the free range chickens is a lot higher than the caged chickens. Chickens fight and will peck each other to death. “Better” is somewhat subjective.
Just did a search, and caged chickens are healthier over all than free running.
The taste difference in eggs is due to what they are fed, not the cage or lack there of.