Which is a necessary evil if you're shipping the hardware of that "computer" at ultra low or negative margins in order to make back the investment on SW sales.
Otherwise, the air force will buy boatloads of PS3s for a computer farm and scalpers will use PS5 for crypto mining and Sony would go bust from these hardware sales.
Apple is in a different position as it makes crazy margins even on hardware which is arare for hardware manufacturers.