They also work well as a cat deterrent ...
My neighbor's cat used to love to use my freshly mulched beds for her cat box. I sprinkled dried, used coffee grounds on top of my mulch and I never had any problems finding cat poo in the mulch after I started top dressing the mulch with a bit of coffee grounds ...