I really don’t se why this is a thing for front yards either. Growing vegetables are just as pretty as a lawn, and even if you don’t think so, surely productive use of the land ought to take priority.
I find it so strange that such restrictions only seem to exist in the US, where there is normally so much emphasis on individual freedom.