They're "massively profitable" because they're laying off large portions of a major cost center - labor - and backloading uncoming data center construction costs. As those come due, and labor needs rise again, that profit disappears.
They have a track record of cornering a market and abusing their position, and also still somehow not being able to balance expenses and revenues to turn a profit that pleases shareholders. You get to decide if that's a problem with the company or the shareholders, I guess.
https://www.macrotrends.net/stocks/charts/MSFT/microsoft/ebi...
https://www.macrotrends.net/stocks/charts/AMZN/amazon/ebitda