I struggles to understand the sentence in bold in the following essay because of the usage of at a cost and following the word that.
Geothermal energy is natural heat from the interior of the Earth that is converted to heat buildings and generate electricity. The idea of harnessing Earth's internal heat is not new. As early as 1904, geothermal power was used in Italy. Today, Earth's natural internal heat is being used to generate electricity in 21 countries, including Russia, Japan, New Zealand, Iceland, Mexico, Ethiopia, the Philippines and the United States. Total worldwide production is approaching 9000 MW. Some 40 million people today receive their electricity from geothermal energy at a cost competitive with that of other energy sources. However, at the global level, geothermal energy supplies less than 0.15% of the total energy supply.
I know what "at a cost" means but I looked it up again in the Cambridge Dictionary and I found the following examples which are completely understandable.
He rescued four people at the cost of his own life.
It means you take a risk, in this case his your life, you are going to lose something but it is not clear how much it will be.
The cruise ship was built at a cost of $400 million.
This sentence simply means that the cruise cost $400 million.
Can you explain to me what the sentence imply , especially at a cost and that?