Because states have to show a response to circulation money. So in order to make money, you have to have gold reserves in your treasure.
Secondly, printing money means injecting more money into the market. If money is available in the market, the value of money falls
When money loses value due to a lot of money in the market, it needs to be spent more in that currency than to be able to get a product. So inflation occurs.