Obama (and Congress) called it a fine, Justice Roberts changed it to a tax
...while most of the legal debate focused on Congress’s power under the Commerce Clause, the Court ultimately upheld the law as an exercise of the taxing power—even though President Obama famously claimed that the law was not a tax.