It's an expectation. Sometimes just peer-pressure, sometimes with legal backing (there are many HOAs that require lawns, sometimes with a specific list of allowed grasses).