It is a good thing to test the soil pH. Most coffee grounds are about 6.9 pH, so adding them should not hurt anything. Leaves will make an alkaline compost, so you should not use them if you are trying to go more acid.
Your right that it doesn't hurt anything but it takes time that could be used for.... oh I don't know, maybe shooting!