Weed seeds blow across property lines and create problems for other people. It creates an undue burden on those that want to maintain a garden or other curated flora.
And mandating that everyone have a manicured lawn doesn’t place an undue burden on those who like wildness and want to curate that or want to grow vegetables?