Xserve was always kind of a loss. Wrote a piece about it a number of years back. It became pretty much a commodity business--which isn't Apple.
How is server hardware more "commodity" than MacBook laptops? Both are quite sophisticated and tailored to their audience in nuanced ways; both are manufactured at scale and face fierce competition. I don't think Xserve was a uniquely commodity business, it was a B2B service business--which isn't Apple.
With Thunderbolt 5 and M5 Ultras, Apple could be building lower cost clusters that could possibly scale enough while keeping a lower power budget. Obviously that can't compete with NVIDIA racks, but for mobile consumer inference maybe that would be enough?
I always wondered what they were hoping for with their server products back when they had them. Consumers and end users benefit greatly from the vertical integration that Apple is good at. This doesn't translate with servers. Commodity hardware + linux is not only cheaper, its often easier, and was definitely less proprietary.
Its also a race to the bottom type scenario. Apple would have never been able to keep up with server release schedules.
Was an interesting but ultimately odd moment of history for servers.