You get xp, you don't, however, get a shovel.

So I always take the reasonable comment about just passing through and let the idiots attack me.

I don't even like the stupid burried treasure system, but I'm a sucker for being a completionist.