What makes you think the API costs are "the true price" and anywhere near their inference costs? Also what percentage of users do you think actually maxes out their subscription?
I suspect they're subsidizing a lot less than people think.
We can look at openrouter GLM 5.2 prices I think to get a rough idea about the pure inference cost (with margin). They are probably running on simmilar hardware. Although scale helps Anthropic probably.