So yeah I came up with this dumb theory today
Perhaps (American) school lunches generally aren't great quality because the government wants us to spend money at restaurants, keeping the economy going. If we are conditioned to eat food that doesn't taste great, we would appreciate other food sources more, prompting us to keep returning to the restaurants and buying their food.