It depends on the school, how much money they have in the budget for food, if they grow their own veggies - some schools do - and who cooks the food. Generally speaking, homemade food at home tastes better, unless you're a terrible cook or it's not a household chore you enjoy doing.
Some schools / canteens nail it and their food is actually good. And then there are some schools where the food is terrible.