Being expensive is the _easiest_ thing for most governments. It's often a requirement! i.e. As a contractor, bid too cheaply and you will not be taken seriously.
This doesn't apply to energy grid scale projects. Also that is why energy sector in most countries is privatized. Take Germany with total energy costs that would be like ~10% of the federal budget (about 40 billion euros). Making energy even more expensive would only lead to further deindustrialization and lower gdp making it politically non viable. Also, you can't just throw money and buy storage like with typical government contracts - it requires building entire new industries (like Germany's struggles with hydrogen infrastructure).