What is this?

I found it on a dog walk, and pokes holes in it (w a stick) to try understand what it is. I’m clueless…