Recycling of Stones

Recycling of stones?
I’m at guess here, but these stones were lined up right outside the cemetery walls, and they certainly look like they belong in a cemetery.. graves.
By the way, notice the pattern in the wall, it’s the same as the paper/thunder ornaments at the shrines. The Kami – god – thunder – paper -theme