In my country if you want to dig into the ground more than a few meters you'd need to get a permit. Officially everything that is buried is registered but every once in a while they find an old pipe that nobody knows what it is for.
Plenty of people don’t bother and YOLO it, and usually it’s fine - until it isn’t.