The mint literally creates physical money (coins). But in the end, the government actually does generate revenue, that gets calculated into a profit or loss for the country:
https://www.investopedia.com/terms/s/seigniorage.asp
$100 bills DO generate profit. Pennies generate a loss. If you look at all of the currency in aggregate, it generates positive revenue for the country.