They may not recoup R&D costs for a while depending on volume, but they will make a profit per unit. They can't sell them as loss leaders like regular console manufacturers can, since then general computer buyers would get them as a priced down unlocked PC.
And importantly, they have the finances to support that R&D expenditure taking longer than expected to be recouped. The same situation with a small company would be very different than a company with solid income elsewhere.