Chromecast hardware wasn't ever sold at a loss, AFAIK. These things were/are pretty pricey for being long-outdated SoCs equivalent to low range smartphone SoCs and a HDMI driver chip.