Bitcoin has a specific fixed supply of 21M coin which will ensure protection against every from of devaluation , beside there's a smaller unit that can be used in btc(sats) incase of any form of scarcity and scarcity brings about increase in price , bitcoin price is also determined by the demand and supply in the market.
On the other hand, fiat currencies can be printed at will by the government and the supply will still be determined by that single entity which is still the government.
That is the advantage possessed by Bitcoin because there are no entities that can adjust their travel in an inflisit because the price journey will be determined by the request and supply process. In contrast to the Fiat currency which has rules from their respective governments in terms of distribution and usually the value continues to decline because of problems that occur around the world economy and other events. Bitcoin has shown excellence in economic conditions that are in trouble like some time ago that occurred when the Covid disaster struck and the level of inflation that occurred so large Bitcoin could show its durability.
Although the government can print any money in any amount, but that does not mean they can solve the economic problem that is currently poor and the absence of the balance of money that is printed can affect the stability of the country. If not the country is so easy to solve the problem by printing as much money as possible but that is also not a concrete solution that can be run.