> but they also don't get raptors, foxes, or rats
I think the golden rule is a good basis for morality even for our relations with animals. Personally I would rather live in this open world that includes dangerous predators (that have killed some of my closest friends) and other risks than in a safe institution ... whether I get harvested for my meat at the end or not.
They're free to move about at least in their "bay" and have the company of other hens that can wander about too. Sure, they don't get the marketing feelgood "sun on their backs and wind in their feathers", but they also don't get raptors, foxes, or rats.
You can get rescue hens and they're just about savvy enough to figure out - after you've lost one or two - that predators are a thing, and you'll get an egg every couple of days per hen. They'll eat all the bugs in your garden (and most of the herbs, and the tops of your carrots) and shit everywhere.