Huh? Like you aren’t allowed to bury something in your backyard if you want? What’s that about?
That said, hiding evidence from law enforcement/money from the tax authorities is a crime anyways, regardless of where you hide it.
There is no duty to provide evidence of a crime to law enforcement in the US, anyway - merely to comply with warrants or the like, if issued. There is a difference.
It is also not illegal to hide money - just illegal to not pay taxes due. There is also a difference there too.
The goal isn't to lock all money down and infringe on personal rights, it's to keep it from being hidden and untaxed en masse by many very rich entities.