The losses from the PS3 wiped out the profits from the PS1 and PS2. Even at $599 they were still losing money per console sold. Sure this generation Microsoft wasn't willing to lose money per console, but they certainly did for the OG Xbox and Xbox 360. Microsoft was nearly giving up on Xbox this generation until Phil Spencer convinced the current CEO of MS the importance of the brand and he was then given the money to acquire so many studios.
The current CEO has a background in streaming/online services. He sees the value in streaming games and GAAS. Series X is an attempt to use the Xbox brand to help bring those services, mainly xCloud. Even when buying those studios, MS said it was more about adding content for GamePass and, in the future, xCloud, not to sell Xbox HW.
I wasn't speaking just about the PS3. Sony has always sold at a loss. And they have learned from the PS3. Taking a $50-$100 loss, with a constant stream of PSN money coming in, is not the same as taking a $300 loss with no PSN money.
Your logic is also backwards in your original post. If a company doesn't care as much for a product, they are less likely to take a loss on it. Not more.