FWIW a mowed lawn discourages rodents from making homes next to your house, and eventually chewing through whatever they can find to make a hole into your house.
Of course people ruin this protection by then planting bushes right up next to their homes.
The idea is to create a sort of dead zone around your house where nothing really lives. Ants of course don't care and are a huge problem for homeowners.