This is what I keep saying about primary industries.
To live somewhere you require the utmost essentials: food, water, shelter.
Without these you die.
Primary industries either produce these essentials or something you can sell to other parts of the world to acquire these essentials from elsewhere.
An oil rig is the perfect example of this, there's no food, drinkable water or shelter on the surface of the ocean far out at sea, but an oil rig produces large quantities of oil which is valuable and thus everything those rig operators require is sent out there (at huge expense) to support them and their industry.
A government's job is to maintain, develop and grow these primary industries, because these primary industries are the foundation of the economy, the larger and more prosperous that foundation the more opportunity there is for secondary/tertiary/etc industries.
With a strong economy a government can afford to buy guns and drones and APCs for its police and military, likewise a strong economy can get energy from elsewhere if it needs to. That being said energy is itself a very foundational thing and whenever possible you want to be as self sufficient as possible and for that energy to be as readily available as possible.
Australia is a net exporter of food and energy, that we're facing a housing and cost of living crisis is inarguable evidence of phenomenal incompetence from our government, or rather corruption.