About 70% of my soft plastics are coffee scented. More of a human odor blocker than a attractant. From my experience coffee Grounds mixed with soil are good bug and mold prevention. Also Aids in digestive health for the worms.
That's funny my grandpa had the same type of deal.
He had a compost pit that he would put all his grass clippings and old vegetables. He would turn that $hit everyday until it was the richest soil you ever saw. The worms and vegetables that dirt would produce look like they were on steroids.