Its good for the grass anyway, natural fertilizer.
No, it isn't. The problem for the grass is the urine. It kills grass and, since dogs like to piss on each other's piss, it leaves whole patches of dead dirt.
My end-unit townhouse was where the whole neighborhood let their dogs defecate. We paid for a garbage can and little bags so the pet owners wouldn't even risk touching any, yet they still left the feces. Unless someone was watching, of course. My Saturday ritual was shoveling everybody's dog shit into a trash can so the stink wouldn't permeate my home. I'd even leave the shovel out in hopes that some considerate dog owner would help out, but no. I'd just find the shovel, handle down, in the can the next day.
I finally sold the house and moved away because of dogs. Well, not because of the dogs. Because of their rude, inconsiderate owners.