Oh, I get it now. So, you helped the bug. Good job. Poor little guy.

Some dog was probably trying to "mark" that bug's scent.
Yup, my dogs are always interested in smelling little bugs, or the openings of their dens. We poor humans must be missing out on a lot by not being able to detect some of those scents.