For the PlayStation 3, another thing driving Linux's removal was that organizations were buying PS3s to use in data centers. But Sony sold them at a loss (IIRC over $100/unit loss, even being sold at $600 twenty years ago) and intended to make it up on revenue from games sold. They also didn't have nearly enough at launch because they were using a brand new processor (designed with help from IBM) and a brand new Blu-Ray disc format. That slowed down their initial production, and it had to launch in time to compete with the Xbox 360 (Pre-Christmas 2005), which also had a HD-DVD attachment.
Notably, the PS3 at launch was actually cheaper than some dedicated Blu-ray players, so some home theater enthusiasts bought them (few to no games), eating into Sony's revenue even more. It took several years for the PS3 to be profitable, but it won the format war.