We limit risky behaviors all the time as well. It's illegal to parkour on private property, but not everywhere. It's illegal to freedive and BASE jump in many places, but not everywhere. Some caves aren't legal to explore, for others, you have to be an expert. Expertise is a way society gatekeeps many dangerous activities. If you're under the age of 18 or older than 75, you can't climb Mount Everest.
We no longer put heroin or cocaine in soda, we regulate some drugs and outlaw others on the premise that addiction poses a burden both on the society and the individual. We also have doctors and treatment centers as society's way of intermediating between people and bad behaviors.
And yes, there are reasonable limits placed both by society and by the law, on where and how and how big you can dig holes. It isn't an unacceptable imposition on your personal liberty that you just cant take a shovel anywhere you like and start digging anywhere you want.
>"We live in a society" goes both ways and does not imply individuals need to give up everything for the greater good.
No, it doesn't and I never claimed it did.