The husband of a couple we know have a few chickens in a coop in their back yard. Definitely pets, but they do get eggs.
The major difference between them and a “normal” person is the wife is a veterinarian, so he pretty much has the healthcare of his birds covered.
Yeah, I couldn’t do it myself. The closest we got was our guinea pigs, but they are friends not food.