In the United States most (all?) cities have local ordinances regulating lawn height. For example, in Portland, Oregon “lawn areas” can be no more than 10 inches high[1]. Mind you, this is just for the city and only applies to lawns, not gardens, or forested areas on large acreages. I imagine it stemmed from helping reduce fires near dwellings, but that is a total guess. Rural areas will have different regulations though.
>Rural areas will have different regulations though.
Sometimes those can be even worse. I lived in a town of 300 growing up, and we often had to deal with the mayor's wife and occasionally the mayor himself coming to our door to tell us we were in violation of some lawn ordinance or another. This is particularly obnoxious considering that the only way to even look up town ordinances is to go to the other side of the county to view the documents at the county office.
[1] https://www.portlandoregon.gov/citycode/article/514518