I believe the 1872 mining law allows miners to patent their claims if proved up. Then their claims became private property which was taxed by local governments. So, in effect they do pay royalty. I may be wrong on this, but I know the mining companies pay their fair share of taxes.
Oil and Gas facilities also pay the local taxes.
It remains confusing to me why they are treated differently.