It is a requirement to offer lunch in public schools in the US. Very few states are free. Some kids qualify for "reduced" cost depending on the district and their parent's income. The variance in the quality can be huge depending on the district.
I was in school in the 2000s. My school's food was almost always more like fast food than actual meals. Fruits and vegetables were not a big component, or weren't available at all, and the food never seemed "fresh". A lot of kids were kind of embarrassed to be seen eating the food. I know some kids that often skipped meals to just eat candy or went to cheaper vending machine fare.